=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/cmd-choose-tree.c,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- src/usr.bin/tmux/cmd-choose-tree.c 2012/09/24 12:53:55 1.11 +++ src/usr.bin/tmux/cmd-choose-tree.c 2012/12/24 12:25:52 1.12 @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-choose-tree.c,v 1.11 2012/09/24 12:53:55 nicm Exp $ */ +/* $OpenBSD: cmd-choose-tree.c,v 1.12 2012/12/24 12:25:52 nicm Exp $ */ /* * Copyright (c) 2012 Thomas Adam @@ -39,8 +39,8 @@ 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, @@ -231,6 +231,9 @@ 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); }