diff options
author | nicm <nicm> | 2019-04-26 11:38:51 +0000 |
---|---|---|
committer | nicm <nicm> | 2019-04-26 11:38:51 +0000 |
commit | dfb7bb683057d08303955c49073f4b475bd0e2d6 (patch) | |
tree | 3adae7924f831bce4f28ec5aef5528793319ada4 /cmd-new-window.c | |
parent | f1e14f86c4d2467571e20a3dca4a96a3cc357897 (diff) | |
download | rtmux-dfb7bb683057d08303955c49073f4b475bd0e2d6.tar.gz rtmux-dfb7bb683057d08303955c49073f4b475bd0e2d6.tar.bz2 rtmux-dfb7bb683057d08303955c49073f4b475bd0e2d6.zip |
Merge hooks into options and make each one an array option. This allows
multiple commands to be easily bound to one hook. set-hook and
show-hooks remain but they are now variants of set-option and
show-options. show-options now has a -H flag to show hooks (by default
they are not shown).
Diffstat (limited to 'cmd-new-window.c')
-rw-r--r-- | cmd-new-window.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-new-window.c b/cmd-new-window.c index e3bacff8..1007c597 100644 --- a/cmd-new-window.c +++ b/cmd-new-window.c @@ -105,7 +105,7 @@ cmd_new_window_exec(struct cmd *self, struct cmdq_item *item) } cmd_find_from_winlink(&fs, new_wl, 0); - hooks_insert(s->hooks, item, &fs, "after-new-window"); + cmdq_insert_hook(s, item, &fs, "after-new-window"); return (CMD_RETURN_NORMAL); } |