summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-rotate-window.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2019-04-17 14:37:48 +0000
committernicm <nicm@openbsd.org>2019-04-17 14:37:48 +0000
commitc26c4f79767981d9e7cfd9040b1fbb03d77cf042 (patch)
tree902aef886172968a1fc96b65e65f5c4f8a7d12f6 /usr.bin/tmux/cmd-rotate-window.c
parentretguard-cookie-in-register is slightly unstable on arm64, so surgically (diff)
downloadwireguard-openbsd-c26c4f79767981d9e7cfd9040b1fbb03d77cf042.tar.xz
wireguard-openbsd-c26c4f79767981d9e7cfd9040b1fbb03d77cf042.zip
Break new window and pane creation common code from various commands and
window.c into a separate file spawn.c.
Diffstat (limited to 'usr.bin/tmux/cmd-rotate-window.c')
-rw-r--r--usr.bin/tmux/cmd-rotate-window.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/cmd-rotate-window.c b/usr.bin/tmux/cmd-rotate-window.c
index 6a35cf29408..433605a1622 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.25 2017/08/30 10:33:57 nicm Exp $ */
+/* $OpenBSD: cmd-rotate-window.c,v 1.26 2019/04/17 14:37:48 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -77,7 +77,7 @@ cmd_rotate_window_exec(struct cmd *self, struct cmdq_item *item)
if ((wp = TAILQ_PREV(w->active, window_panes, entry)) == NULL)
wp = TAILQ_LAST(&w->panes, window_panes);
- window_set_active_pane(w, wp);
+ window_set_active_pane(w, wp, 1);
cmd_find_from_winlink_pane(current, wl, wp, 0);
server_redraw_window(w);
} else {
@@ -105,7 +105,7 @@ cmd_rotate_window_exec(struct cmd *self, struct cmdq_item *item)
if ((wp = TAILQ_NEXT(w->active, entry)) == NULL)
wp = TAILQ_FIRST(&w->panes);
- window_set_active_pane(w, wp);
+ window_set_active_pane(w, wp, 1);
cmd_find_from_winlink_pane(current, wl, wp, 0);
server_redraw_window(w);
}