aboutsummaryrefslogtreecommitdiff
path: root/window-tree.c
diff options
context:
space:
mode:
authornicm <nicm>2018-02-28 08:55:44 +0000
committernicm <nicm>2018-02-28 08:55:44 +0000
commit508e2f0b3aaf2db9b692863738e7ca75765fc70c (patch)
tree4c956b3d1a1b43d9484637f4103dae036c1f1fe2 /window-tree.c
parent4d72b8fff7dfc170268af5a4c5323a8d9b815f74 (diff)
downloadrtmux-508e2f0b3aaf2db9b692863738e7ca75765fc70c.tar.gz
rtmux-508e2f0b3aaf2db9b692863738e7ca75765fc70c.tar.bz2
rtmux-508e2f0b3aaf2db9b692863738e7ca75765fc70c.zip
Add -Z flag to choose-tree, choose-client, choose-buffer to
automatically zoom the pane when the mode is entered and unzoom when it exits, assuming the pane is not already zoomed. Add -Z to the default key bindings.
Diffstat (limited to 'window-tree.c')
-rw-r--r--window-tree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/window-tree.c b/window-tree.c
index 4165047b..8a327bb6 100644
--- a/window-tree.c
+++ b/window-tree.c
@@ -841,6 +841,7 @@ window_tree_init(struct window_pane *wp, struct cmd_find_state *fs,
data->data = mode_tree_start(wp, args, window_tree_build,
window_tree_draw, window_tree_search, data, window_tree_sort_list,
nitems(window_tree_sort_list), &s);
+ mode_tree_zoom(data->data, args);
mode_tree_build(data->data);
mode_tree_draw(data->data);