diff options
author | nicm <nicm> | 2017-02-27 13:07:57 +0000 |
---|---|---|
committer | nicm <nicm> | 2017-02-27 13:07:57 +0000 |
commit | e741a0bcd7775fab1db822ea6707cd32b0ea9799 (patch) | |
tree | e5a066323c49a0df1055f02b66c3394e1c03fb70 /cmd-split-window.c | |
parent | 0414b1fc78c8c47af49ffe6305999df8592be24f (diff) |
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.
Diffstat (limited to 'cmd-split-window.c')
-rw-r--r-- | cmd-split-window.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |