Pass flags into cmd_find_from_* to fix prefer-unattached, reported by

Thomas Sattler.
This commit is contained in:
nicm
2017-08-30 10:33:57 +00:00
parent a7d1ee5433
commit 17cf1b21c6
17 changed files with 71 additions and 69 deletions

View File

@ -78,7 +78,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);
cmd_find_from_winlink_pane(current, wl, wp);
cmd_find_from_winlink_pane(current, wl, wp, 0);
server_redraw_window(w);
} else {
wp = TAILQ_FIRST(&w->panes);
@ -106,7 +106,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);
cmd_find_from_winlink_pane(current, wl, wp);
cmd_find_from_winlink_pane(current, wl, wp, 0);
server_redraw_window(w);
}