diff options
author | nicm <nicm> | 2013-10-10 12:07:36 +0000 |
---|---|---|
committer | nicm <nicm> | 2013-10-10 12:07:36 +0000 |
commit | b822d24b15669a0b7d325e2a2f04959b05a3d4fb (patch) | |
tree | fe5ad229e78496ecfd254e586976d889ff5edbce /cmd-split-window.c | |
parent | fc54bfe6b0b5a9053fe967e87f55fbe684abc679 (diff) |
Support -c for new-session, based on code from J Raynor.
Diffstat (limited to 'cmd-split-window.c')
-rw-r--r-- | cmd-split-window.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd-split-window.c b/cmd-split-window.c index 98bbd423..2e984de5 100644 --- a/cmd-split-window.c +++ b/cmd-split-window.c @@ -38,7 +38,6 @@ const struct cmd_entry cmd_split_window_entry = { CMD_TARGET_PANE_USAGE " [command]", 0, cmd_split_window_key_binding, - NULL, cmd_split_window_exec }; @@ -84,7 +83,7 @@ cmd_split_window_exec(struct cmd *self, struct cmd_q *cmdq) cmd = options_get_string(&s->options, "default-command"); else cmd = args->argv[0]; - cwd = cmd_get_default_path(cmdq, args_get(args, 'c')); + cwd = cmdq_default_path(cmdq, args_get(args, 'c')); type = LAYOUT_TOPBOTTOM; if (args_has(args, 'h')) |