From 00cf5fbde6d846a10804447204dd55e8c3a68dbd Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 6 Jun 2016 07:24:31 +0000 Subject: 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. --- cmd-split-window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd-split-window.c') diff --git a/cmd-split-window.c b/cmd-split-window.c index 8382d78e..de6827a7 100644 --- a/cmd-split-window.c +++ b/cmd-split-window.c @@ -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; -- cgit