diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2016-11-14 16:27:13 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2016-11-14 16:27:13 +0000 |
commit | b891b59a47967556681f986075598b902af23fcc (patch) | |
tree | c41781d1d745e038e04e928328b7626104801568 | |
parent | 9f428f39e397bd58acdc3889b87d30ebf82cf9d3 (diff) |
rotate-window needs to unzoom, problem reported by Sean Haugh.
-rw-r--r-- | usr.bin/tmux/cmd-rotate-window.c | 4 |
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); |