summaryrefslogtreecommitdiffstats
path: root/cmd-split-window.c
diff options
context:
space:
mode:
authornicm <nicm>2016-09-04 17:37:06 +0000
committernicm <nicm>2016-09-04 17:37:06 +0000
commitfed1e384ad7eb88cc6203e49d4efa8e5ed4edb59 (patch)
tree7ec149e5a721c1e0746a0c61b3bddb19d52b63c3 /cmd-split-window.c
parent2627ab322e0e8dffbf86b1c2eb969139a8062174 (diff)
Add support for performing a full width split (with splitw -f), rather
than splitting the current cell. From Stephen Kent.
Diffstat (limited to 'cmd-split-window.c')
-rw-r--r--cmd-split-window.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/cmd-split-window.c b/cmd-split-window.c
index de6827a7..8d24c6c5 100644
--- a/cmd-split-window.c
+++ b/cmd-split-window.c
@@ -39,8 +39,8 @@ const struct cmd_entry cmd_split_window_entry = {
.name = "split-window",
.alias = "splitw",
- .args = { "bc:dF:l:hp:Pt:v", 0, -1 },
- .usage = "[-bdhvP] [-c start-directory] [-F format] "
+ .args = { "bc:dfF:l:hp:Pt:v", 0, -1 },
+ .usage = "[-bdfhvP] [-c start-directory] [-F format] "
"[-p percentage|-l size] " CMD_TARGET_PANE_USAGE " [command]",
.tflag = CMD_PANE,
@@ -131,7 +131,8 @@ cmd_split_window_exec(struct cmd *self, struct cmd_q *cmdq)
if (*shell == '\0' || areshell(shell))
shell = _PATH_BSHELL;
- lc = layout_split_pane(wp, type, size, args_has(args, 'b'));
+ lc = layout_split_pane(wp, type, size, args_has(args, 'b'),
+ args_has(args, 'f'));
if (lc == NULL) {
cause = xstrdup("pane too small");
goto error;