Add support for performing a full width split (with splitw -f), rather

than splitting the current cell. From Stephen Kent.
This commit is contained in:
nicm
2016-09-04 17:37:06 +00:00
parent 2627ab322e
commit fed1e384ad
5 changed files with 245 additions and 48 deletions

View File

@ -125,7 +125,7 @@ join_pane(struct cmd *self, struct cmd_q *cmdq, int not_same_window)
else
size = (dst_wp->sx * percentage) / 100;
}
lc = layout_split_pane(dst_wp, type, size, args_has(args, 'b'));
lc = layout_split_pane(dst_wp, type, size, args_has(args, 'b'), 0);
if (lc == NULL) {
cmdq_error(cmdq, "create pane failed: pane too small");
return (CMD_RETURN_ERROR);