diff options
author | Thomas Adam <thomas@xteddy.org> | 2017-05-09 15:44:13 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2017-05-09 15:44:13 +0100 |
commit | a651b08a2f95bb206ae6385801518f93fdd5000e (patch) | |
tree | be8f2f1c33014e8524738174b54a967ab9fde362 /cmd-rotate-window.c | |
parent | f3221941f27dbe4dbee550f72d42f268c228f5d1 (diff) | |
parent | 18f36906a9e40ebcf9705fa9deb197bc4a1f813a (diff) | |
download | rtmux-a651b08a2f95bb206ae6385801518f93fdd5000e.tar.gz rtmux-a651b08a2f95bb206ae6385801518f93fdd5000e.tar.bz2 rtmux-a651b08a2f95bb206ae6385801518f93fdd5000e.zip |
Merge branch 'obsd-master'
Conflicts:
format.c
Diffstat (limited to 'cmd-rotate-window.c')
-rw-r--r-- | cmd-rotate-window.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd-rotate-window.c b/cmd-rotate-window.c index 3c15b54e..7a1d9b28 100644 --- a/cmd-rotate-window.c +++ b/cmd-rotate-window.c @@ -43,6 +43,7 @@ const struct cmd_entry cmd_rotate_window_entry = { static enum cmd_retval cmd_rotate_window_exec(struct cmd *self, struct cmdq_item *item) { + struct cmd_find_state *current = &item->shared->current; struct winlink *wl = item->target.wl; struct window *w = wl->window; struct window_pane *wp, *wp2; @@ -77,6 +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); server_redraw_window(w); } else { wp = TAILQ_FIRST(&w->panes); @@ -104,6 +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); server_redraw_window(w); } |