diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2019-04-07 13:01:03 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2019-04-07 13:01:03 +0100 |
commit | 5ece386cdf84b692c1f28b5bf018ac619d067fde (patch) | |
tree | 29e38521bfa457820300718c394b8b72d584e400 /cmd-select-pane.c | |
parent | 7653328ce7e2876dff3219a02cdd87ade3caf90a (diff) | |
download | rtmux-5ece386cdf84b692c1f28b5bf018ac619d067fde.tar.gz rtmux-5ece386cdf84b692c1f28b5bf018ac619d067fde.tar.bz2 rtmux-5ece386cdf84b692c1f28b5bf018ac619d067fde.zip |
Break new window and pane creation common code from various commands and
window.c into a separate file spawn.c.
Diffstat (limited to 'cmd-select-pane.c')
-rw-r--r-- | cmd-select-pane.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-select-pane.c b/cmd-select-pane.c index 2873737f..af0f033b 100644 --- a/cmd-select-pane.c +++ b/cmd-select-pane.c @@ -112,7 +112,7 @@ cmd_select_pane_exec(struct cmd *self, struct cmdq_item *item) else { server_unzoom_window(w); window_redraw_active_switch(w, lastwp); - if (window_set_active_pane(w, lastwp)) { + if (window_set_active_pane(w, lastwp, 1)) { cmd_find_from_winlink(current, wl, 0); cmd_select_pane_redraw(w); } @@ -194,7 +194,7 @@ cmd_select_pane_exec(struct cmd *self, struct cmdq_item *item) return (CMD_RETURN_NORMAL); server_unzoom_window(wp->window); window_redraw_active_switch(w, wp); - if (window_set_active_pane(w, wp)) { + if (window_set_active_pane(w, wp, 1)) { cmd_find_from_winlink_pane(current, wl, wp, 0); hooks_insert(s->hooks, item, current, "after-select-pane"); cmd_select_pane_redraw(w); |