summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/cmd-select-pane.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2015-10-22 11:19:32 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2015-10-22 11:19:32 +0000
commit8b681d2cb98ddc8c9dbecec91f372dc50dd07558 (patch)
tree9082e1be911240233135b70d8c86e8f1bc243372 /usr.bin/tmux/cmd-select-pane.c
parenta798b6510b942ffcf6cf73a67cb24c436f37043f (diff)
Unzoom before -LRUD, reported by Andy Weidenbaum.
Diffstat (limited to 'usr.bin/tmux/cmd-select-pane.c')
-rw-r--r--usr.bin/tmux/cmd-select-pane.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/usr.bin/tmux/cmd-select-pane.c b/usr.bin/tmux/cmd-select-pane.c
index dcc7deba049..f74df0d6797 100644
--- a/usr.bin/tmux/cmd-select-pane.c
+++ b/usr.bin/tmux/cmd-select-pane.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-select-pane.c,v 1.25 2015/09/14 11:34:50 nicm Exp $ */
+/* $OpenBSD: cmd-select-pane.c,v 1.26 2015/10/22 11:19:31 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -120,14 +120,19 @@ cmd_select_pane_exec(struct cmd *self, struct cmd_q *cmdq)
return (CMD_RETURN_NORMAL);
}
- if (args_has(self->args, 'L'))
+ if (args_has(self->args, 'L')) {
+ server_unzoom_window(wp->window);
wp = window_pane_find_left(wp);
- else if (args_has(self->args, 'R'))
+ } else if (args_has(self->args, 'R')) {
+ server_unzoom_window(wp->window);
wp = window_pane_find_right(wp);
- else if (args_has(self->args, 'U'))
+ } else if (args_has(self->args, 'U')) {
+ server_unzoom_window(wp->window);
wp = window_pane_find_up(wp);
- else if (args_has(self->args, 'D'))
+ } else if (args_has(self->args, 'D')) {
+ server_unzoom_window(wp->window);
wp = window_pane_find_down(wp);
+ }
if (wp == NULL)
return (CMD_RETURN_NORMAL);