diff options
author | nicm <nicm> | 2014-11-12 22:57:06 +0000 |
---|---|---|
committer | nicm <nicm> | 2014-11-12 22:57:06 +0000 |
commit | d37f266524803de945af25c4e9fff8209e927374 (patch) | |
tree | e37d6542e8ff9b5d6e255aef1ce0a027ae689231 /cmd-split-window.c | |
parent | f9308bc244bb568fb678effbbb08f8fb277e7560 (diff) |
Add -b to splitw like joinw, from Felix Rosencrantz.
Diffstat (limited to 'cmd-split-window.c')
-rw-r--r-- | cmd-split-window.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cmd-split-window.c b/cmd-split-window.c index b05a2faf..7e34e523 100644 --- a/cmd-split-window.c +++ b/cmd-split-window.c @@ -37,8 +37,8 @@ enum cmd_retval cmd_split_window_exec(struct cmd *, struct cmd_q *); const struct cmd_entry cmd_split_window_entry = { "split-window", "splitw", - "c:dF:l:hp:Pt:v", 0, -1, - "[-dhvP] [-c start-directory] [-F format] [-p percentage|-l size] " + "bc:dF:l:hp:Pt:v", 0, -1, + "[-bdhvP] [-c start-directory] [-F format] [-p percentage|-l size] " CMD_TARGET_PANE_USAGE " [command]", 0, cmd_split_window_exec @@ -145,7 +145,8 @@ cmd_split_window_exec(struct cmd *self, struct cmd_q *cmdq) if (*shell == '\0' || areshell(shell)) shell = _PATH_BSHELL; - if ((lc = layout_split_pane(wp, type, size, 0)) == NULL) { + lc = layout_split_pane(wp, type, size, args_has(args, 'b')); + if (lc == NULL) { cause = xstrdup("pane too small"); goto error; } |