diff options
author | 2016-06-06 07:24:31 +0000 | |
---|---|---|
committer | 2016-06-06 07:24:31 +0000 | |
commit | 48af06c97a7492107e0831b1fca09897279e2273 (patch) | |
tree | 79a890290694460a81d4c7ff216ede7ad4fde722 /usr.bin/tmux/cmd-split-window.c | |
parent | Allow #[] in window-status-separator. (diff) | |
download | wireguard-openbsd-48af06c97a7492107e0831b1fca09897279e2273.tar.xz wireguard-openbsd-48af06c97a7492107e0831b1fca09897279e2273.zip |
Insert new panes after the pane being split in the list rather than
always after the active pane. This is more sensible when doing it with
commands rather than keys.
Diffstat (limited to 'usr.bin/tmux/cmd-split-window.c')
-rw-r--r-- | usr.bin/tmux/cmd-split-window.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-split-window.c b/usr.bin/tmux/cmd-split-window.c index 6466e2ab85e..4f5ceaae1c1 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.68 2016/01/19 15:59:12 nicm Exp $ */ +/* $OpenBSD: cmd-split-window.c,v 1.69 2016/06/06 07:24:31 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -136,7 +136,7 @@ cmd_split_window_exec(struct cmd *self, struct cmd_q *cmdq) cause = xstrdup("pane too small"); goto error; } - new_wp = window_add_pane(w, hlimit); + new_wp = window_add_pane(w, wp, hlimit); layout_assign_pane(lc, new_wp); path = NULL; |