diff options
author | Teddy Wing | 2019-06-19 23:33:26 +0200 |
---|---|---|
committer | Teddy Wing | 2019-06-19 23:33:26 +0200 |
commit | 2e5cc43d7d25295a14d634b53af48a6449cd909f (patch) | |
tree | 57c7788c6022b9942fe7554ca5b11a9f5347d255 /init.lua | |
parent | 11a077d48f0246a98f71465a9f3c54d8a7fcc3a3 (diff) | |
download | dothammerspoon-2e5cc43d7d25295a14d634b53af48a6449cd909f.tar.bz2 |
terminal_tab_hotkeys: Fix errors in enable/disable loops
Since the `terminal_tab_hotkeys` table had both hotkey objects and
methods in it, the loops that enable and disable the hotkeys were also
looping over the functions, resulting in errors like this:
2019-06-19 23:30:09: ********
2019-06-19 23:30:09: 23:30:09 ERROR: LuaSkin: hs.application.watcher callback: $HOME/.hammerspoon/terminal_tab_hotkeys.lua:42: attempt to index a function value (local 'v') stack traceback:
$HOME/.hammerspoon/terminal_tab_hotkeys.lua:42: in method 'enable'
$HOME/.hammerspoon/terminal_tab_hotkeys.lua:55: in function <$HOME/.hammerspoon/terminal_tab_hotkeys.lua:52>
2019-06-19 23:30:09: ********
Go the easy route and just change the methods into functions so that we
only put hotkeys in the tables.
Diffstat (limited to 'init.lua')
0 files changed, 0 insertions, 0 deletions