From e741a0bcd7775fab1db822ea6707cd32b0ea9799 Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 27 Feb 2017 13:07:57 +0000 Subject: If splitw -b is used, insert the new pane before the current one in the pane list. This means the numbering is in order (for example for display-panes) and fixes a problem with redrawing the active pane borders. --- 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 3c49ef9e..f05dc249 100644 --- a/cmd-split-window.c +++ b/cmd-split-window.c @@ -139,7 +139,7 @@ cmd_split_window_exec(struct cmd *self, struct cmdq_item *item) cause = xstrdup("pane too small"); goto error; } - new_wp = window_add_pane(w, wp, hlimit); + new_wp = window_add_pane(w, wp, args_has(args, 'b'), hlimit); layout_assign_pane(lc, new_wp); path = NULL; -- cgit