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.
This commit is contained in:
nicm
2017-02-27 13:07:57 +00:00
parent 0414b1fc78
commit e741a0bcd7
3 changed files with 13 additions and 10 deletions

View File

@ -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;