diff options
author | Thomas Adam <thomas@xteddy.org> | 2018-08-20 17:02:39 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2018-08-20 17:02:39 +0100 |
commit | 098967a085c303543ac41543a4d33e7590341678 (patch) | |
tree | 0d44d8bba6c2af6a1e2d9850a17bc504811597ff /cmd-find-window.c | |
parent | 641191ab2047d1437d46dc0ae787346b74fddca5 (diff) | |
parent | 665f04695063a3e83773b7b4d1d50ce4f9fab970 (diff) | |
download | rtmux-098967a085c303543ac41543a4d33e7590341678.tar.gz rtmux-098967a085c303543ac41543a4d33e7590341678.tar.bz2 rtmux-098967a085c303543ac41543a4d33e7590341678.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'cmd-find-window.c')
-rw-r--r-- | cmd-find-window.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd-find-window.c b/cmd-find-window.c index 22a54195..c2d230a5 100644 --- a/cmd-find-window.c +++ b/cmd-find-window.c @@ -32,8 +32,8 @@ const struct cmd_entry cmd_find_window_entry = { .name = "find-window", .alias = "findw", - .args = { "CNt:T", 1, 1 }, - .usage = "[-CNT] " CMD_TARGET_PANE_USAGE " match-string", + .args = { "CNt:TZ", 1, 1 }, + .usage = "[-CNTZ] " CMD_TARGET_PANE_USAGE " match-string", .target = { 't', CMD_FIND_PANE, 0 }, @@ -83,6 +83,8 @@ cmd_find_window_exec(struct cmd *self, struct cmdq_item *item) xasprintf(&filter, "#{m:*%s*,#{pane_title}}", s); new_args = args_parse("", 1, &argv); + if (args_has(args, 'Z')) + args_set(new_args, 'Z', NULL); args_set(new_args, 'f', filter); window_pane_set_mode(wp, &window_tree_mode, &item->target, new_args); |