summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-split-window.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2016-06-06 07:24:31 +0000
committernicm <nicm@openbsd.org>2016-06-06 07:24:31 +0000
commit48af06c97a7492107e0831b1fca09897279e2273 (patch)
tree79a890290694460a81d4c7ff216ede7ad4fde722 /usr.bin/tmux/cmd-split-window.c
parentAllow #[] in window-status-separator. (diff)
downloadwireguard-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.c4
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;