version 1.53, 2014/10/20 23:35:28 |
version 1.54, 2014/11/12 22:57:06 |
|
|
|
|
const struct cmd_entry cmd_split_window_entry = { |
const struct cmd_entry cmd_split_window_entry = { |
"split-window", "splitw", |
"split-window", "splitw", |
"c:dF:l:hp:Pt:v", 0, -1, |
"bc:dF:l:hp:Pt:v", 0, -1, |
"[-dhvP] [-c start-directory] [-F format] [-p percentage|-l size] " |
"[-bdhvP] [-c start-directory] [-F format] [-p percentage|-l size] " |
CMD_TARGET_PANE_USAGE " [command]", |
CMD_TARGET_PANE_USAGE " [command]", |
0, |
0, |
cmd_split_window_exec |
cmd_split_window_exec |
|
|
if (*shell == '\0' || areshell(shell)) |
if (*shell == '\0' || areshell(shell)) |
shell = _PATH_BSHELL; |
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"); |
cause = xstrdup("pane too small"); |
goto error; |
goto error; |
} |
} |