diff options
author | 2020-05-16 16:20:59 +0000 | |
---|---|---|
committer | 2020-05-16 16:20:59 +0000 | |
commit | 249e1654297584fa37a4782acb154d850fb9bf62 (patch) | |
tree | 82eff76dba1900c91c88d1b2fd8b98c1762844cc /usr.bin/tmux/cmd-split-window.c | |
parent | Expand target from client and use it to expand the prompt. (diff) | |
download | wireguard-openbsd-249e1654297584fa37a4782acb154d850fb9bf62.tar.xz wireguard-openbsd-249e1654297584fa37a4782acb154d850fb9bf62.zip |
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 'usr.bin/tmux/cmd-split-window.c')
-rw-r--r-- | usr.bin/tmux/cmd-split-window.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/cmd-split-window.c b/usr.bin/tmux/cmd-split-window.c index b94a9806c25..a0ed48dcae7 100644 --- a/usr.bin/tmux/cmd-split-window.c +++ b/usr.bin/tmux/cmd-split-window.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-split-window.c,v 1.103 2020/04/13 20:51:57 nicm Exp $ */ +/* $OpenBSD: cmd-split-window.c,v 1.104 2020/05/16 16:20:59 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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); |