aboutsummaryrefslogtreecommitdiff
path: root/cmd-choose-tree.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2012-12-31 18:50:37 +0000
committerThomas Adam <thomas@xteddy.org>2012-12-31 18:50:37 +0000
commit675c6b37734a622b4530d35505f897310fdb138c (patch)
treef604d1b678f6724d9dda28ce14a0efbcdf47a1f3 /cmd-choose-tree.c
parentf4472c16b2b05914ed1d2eb4d5bbf9cd1929f77a (diff)
parent854e8ae04d15c16b688ba38119656aee134548dd (diff)
downloadrtmux-675c6b37734a622b4530d35505f897310fdb138c.tar.gz
rtmux-675c6b37734a622b4530d35505f897310fdb138c.tar.bz2
rtmux-675c6b37734a622b4530d35505f897310fdb138c.zip
Merge branch 'obsd-master'
Sync from OpenBSD.
Diffstat (limited to 'cmd-choose-tree.c')
-rw-r--r--cmd-choose-tree.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/cmd-choose-tree.c b/cmd-choose-tree.c
index e8da7a42..4432ff7e 100644
--- a/cmd-choose-tree.c
+++ b/cmd-choose-tree.c
@@ -39,8 +39,8 @@ void cmd_choose_tree_free(struct window_choose_data *);
const struct cmd_entry cmd_choose_tree_entry = {
"choose-tree", NULL,
- "S:W:swb:c:t:", 0, 1,
- "[-sw] [-b session-template] [-c window template] [-S format] " \
+ "S:W:swub:c:t:", 0, 1,
+ "[-swu] [-b session-template] [-c window template] [-S format] " \
"[-W format] " CMD_TARGET_WINDOW_USAGE,
0,
NULL,
@@ -232,6 +232,9 @@ windows_only:
window_choose_ready(wl->window->active, cur_win,
cmd_choose_tree_callback, cmd_choose_tree_free);
+ if (args_has(args, 'u'))
+ window_choose_expand_all(wl->window->active);
+
return (CMD_RETURN_NORMAL);
}