summaryrefslogtreecommitdiffstats
path: root/cmd-split-window.c
diff options
context:
space:
mode:
authornicm <nicm>2020-05-16 16:20:59 +0000
committernicm <nicm>2020-05-16 16:20:59 +0000
commit303d342d5fa5903983c08e4cae429e4f9480eea3 (patch)
tree150aab174cb176f9a0f8fe29e5b1eb46a65457ec /cmd-split-window.c
parentc914abfa19938fe0e41941879649b7a40e192082 (diff)
Add a client flag 'active-pane' which stores the active pane in the
client and allows it to be changed independently from the real active pane stored in the window. This is can be used with session groups which allow an independent current window (although it would be nice to have a flag for this too and remove session groups). The client active pane is only really useful interactively, many things (hooks, window-style, zooming) still use the window active pane.
Diffstat (limited to 'cmd-split-window.c')
-rw-r--r--cmd-split-window.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd-split-window.c b/cmd-split-window.c
index c0e0e22a..c9d92fae 100644
--- a/cmd-split-window.c
+++ b/cmd-split-window.c
@@ -160,6 +160,7 @@ cmd_split_window_exec(struct cmd *self, struct cmdq_item *item)
return (CMD_RETURN_ERROR);
}
if (input && window_pane_start_input(new_wp, item, &cause) != 0) {
+ server_client_remove_pane(new_wp);
layout_close_pane(new_wp);
window_remove_pane(wp->window, new_wp);
cmdq_error(item, "%s", cause);