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.
This commit is contained in:
nicm
2016-06-06 07:24:31 +00:00
parent 3c10df4f87
commit 00cf5fbde6
3 changed files with 11 additions and 6 deletions

View File

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