summaryrefslogtreecommitdiffstats
path: root/window-client.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-client.c
parent4d72b8fff7dfc170268af5a4c5323a8d9b815f74 (diff)
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-client.c')
-rw-r--r--window-client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/window-client.c b/window-client.c
index aae9e0b4..69f99904 100644
--- a/window-client.c
+++ b/window-client.c
@@ -256,6 +256,7 @@ window_client_init(struct window_pane *wp, __unused struct cmd_find_state *fs,
data->data = mode_tree_start(wp, args, window_client_build,
window_client_draw, NULL, data, window_client_sort_list,
nitems(window_client_sort_list), &s);
+ mode_tree_zoom(data->data, args);
mode_tree_build(data->data);
mode_tree_draw(data->data);