summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-rotate-window.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2016-11-14 16:27:12 +0000
committernicm <nicm@openbsd.org>2016-11-14 16:27:12 +0000
commit7d6ad1a9cd72e4f247f8c2ee1adf7714ea157731 (patch)
tree1c6f9fd32a37cf6d722a468a752115fd51225483 /usr.bin/tmux/cmd-rotate-window.c
parenttweak previous; (diff)
downloadwireguard-openbsd-7d6ad1a9cd72e4f247f8c2ee1adf7714ea157731.tar.xz
wireguard-openbsd-7d6ad1a9cd72e4f247f8c2ee1adf7714ea157731.zip
rotate-window needs to unzoom, problem reported by Sean Haugh.
Diffstat (limited to 'usr.bin/tmux/cmd-rotate-window.c')
-rw-r--r--usr.bin/tmux/cmd-rotate-window.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/cmd-rotate-window.c b/usr.bin/tmux/cmd-rotate-window.c
index 2327f65d75b..52fbbfe9561 100644
--- a/usr.bin/tmux/cmd-rotate-window.c
+++ b/usr.bin/tmux/cmd-rotate-window.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-rotate-window.c,v 1.21 2016/10/16 19:04:05 nicm Exp $ */
+/* $OpenBSD: cmd-rotate-window.c,v 1.22 2016/11/14 16:27:12 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -49,6 +49,8 @@ cmd_rotate_window_exec(struct cmd *self, struct cmdq_item *item)
struct layout_cell *lc;
u_int sx, sy, xoff, yoff;
+ server_unzoom_window(w);
+
if (args_has(self->args, 'D')) {
wp = TAILQ_LAST(&w->panes, window_panes);
TAILQ_REMOVE(&w->panes, wp, entry);