summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/window-buffer.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2018-02-28 08:55:44 +0000
committernicm <nicm@openbsd.org>2018-02-28 08:55:44 +0000
commit4f5e4c93613268610dfe906c9a5f155e1b2cf1b0 (patch)
tree55773d72850e46a7b8f4e5eae876749a2c52b58a /usr.bin/tmux/window-buffer.c
parentvmd: Fix 100% vmd cpu usage on linux receive / unpause (diff)
downloadwireguard-openbsd-4f5e4c93613268610dfe906c9a5f155e1b2cf1b0.tar.xz
wireguard-openbsd-4f5e4c93613268610dfe906c9a5f155e1b2cf1b0.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 'usr.bin/tmux/window-buffer.c')
-rw-r--r--usr.bin/tmux/window-buffer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/window-buffer.c b/usr.bin/tmux/window-buffer.c
index 6d62830b4ba..f1fd8dcb2b6 100644
--- a/usr.bin/tmux/window-buffer.c
+++ b/usr.bin/tmux/window-buffer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: window-buffer.c,v 1.12 2017/11/03 17:02:33 nicm Exp $ */
+/* $OpenBSD: window-buffer.c,v 1.13 2018/02/28 08:55:44 nicm Exp $ */
/*
* Copyright (c) 2017 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -273,6 +273,7 @@ window_buffer_init(struct window_pane *wp, __unused struct cmd_find_state *fs,
data->data = mode_tree_start(wp, args, window_buffer_build,
window_buffer_draw, window_buffer_search, data,
window_buffer_sort_list, nitems(window_buffer_sort_list), &s);
+ mode_tree_zoom(data->data, args);
mode_tree_build(data->data);
mode_tree_draw(data->data);