summaryrefslogtreecommitdiffstats
path: root/cmd-rotate-window.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-06-25 08:08:18 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-06-25 08:08:18 +0000
commite8c10f5b342d4d2b0d905e8fc1cc1b7a8802c1ab (patch)
tree958ebe30fc0b3154643b18b48fcd877a237de950 /cmd-rotate-window.c
parent5050171f6b5b7aadbb78a3ed6e039b0f15d21740 (diff)
Use the pane flags not the window flags. Doh.
Diffstat (limited to 'cmd-rotate-window.c')
-rw-r--r--cmd-rotate-window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-rotate-window.c b/cmd-rotate-window.c
index 39605b64..52b752e9 100644
--- a/cmd-rotate-window.c
+++ b/cmd-rotate-window.c
@@ -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;