summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-rotate-window.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2009-06-25 08:08:18 +0000
committernicm <nicm@openbsd.org>2009-06-25 08:08:18 +0000
commit76dc86626f6ba0640e88a8fadd94cb6158b55963 (patch)
treec2a5c76da3cd582a717c5c9cbccd44a3e0157740 /usr.bin/tmux/cmd-rotate-window.c
parentdiagflags for diags (diff)
downloadwireguard-openbsd-76dc86626f6ba0640e88a8fadd94cb6158b55963.tar.xz
wireguard-openbsd-76dc86626f6ba0640e88a8fadd94cb6158b55963.zip
Use the pane flags not the window flags. Doh.
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 7774ad614c3..c6120d2e6e0 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.3 2009/06/05 03:13:16 ray Exp $ */
+/* $OpenBSD: cmd-rotate-window.c,v 1.4 2009/06/25 08:08:18 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -73,7 +73,7 @@ cmd_rotate_window_exec(struct cmd *self, struct cmd_ctx *ctx)
xoff = wp->xoff; yoff = wp->yoff;
sx = wp->sx; sy = wp->sy;
- flags = w->flags;
+ flags = wp->flags;
TAILQ_FOREACH(wp, &w->panes, entry) {
if ((wp2 = TAILQ_NEXT(wp, entry)) == NULL)
break;
@@ -97,7 +97,7 @@ cmd_rotate_window_exec(struct cmd *self, struct cmd_ctx *ctx)
xoff = wp->xoff; yoff = wp->yoff;
sx = wp->sx; sy = wp->sy;
- flags = w->flags;
+ flags = wp->flags;
TAILQ_FOREACH_REVERSE(wp, &w->panes, window_panes, entry) {
if ((wp2 = TAILQ_PREV(wp, window_panes, entry)) == NULL)
break;