diff options
author | nicm <nicm> | 2020-04-13 07:25:33 +0000 |
---|---|---|
committer | nicm <nicm> | 2020-04-13 07:25:33 +0000 |
commit | 9cbe9675ea8a8efb01dcc5f267e6d5853b2cd58f (patch) | |
tree | 60971ed265c57e1bb43345b88e872181ff7ebb85 /cmd-show-options.c | |
parent | ad38ef6ff43b5794f09911c1ae72f44bb6f0869f (diff) | |
download | rtmux-9cbe9675ea8a8efb01dcc5f267e6d5853b2cd58f.tar.gz rtmux-9cbe9675ea8a8efb01dcc5f267e6d5853b2cd58f.tar.bz2 rtmux-9cbe9675ea8a8efb01dcc5f267e6d5853b2cd58f.zip |
Change so that the appropriate hooks for windows and panes belong to
pane/window options rather than all being session options. This is
useful for example to create a pane that is automatically closed on some
condition. From Anindya Mukherjee.
Diffstat (limited to 'cmd-show-options.c')
-rw-r--r-- | cmd-show-options.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd-show-options.c b/cmd-show-options.c index b5c5f59d..fe3cddc5 100644 --- a/cmd-show-options.c +++ b/cmd-show-options.c @@ -65,10 +65,10 @@ const struct cmd_entry cmd_show_hooks_entry = { .name = "show-hooks", .alias = NULL, - .args = { "gt:", 0, 1 }, - .usage = "[-g] " CMD_TARGET_SESSION_USAGE, + .args = { "gpt:w", 0, 1 }, + .usage = "[-gpw] " CMD_TARGET_PANE_USAGE, - .target = { 't', CMD_FIND_SESSION, 0 }, + .target = { 't', CMD_FIND_PANE, CMD_FIND_CANFAIL }, .flags = CMD_AFTERHOOK, .exec = cmd_show_options_exec |