Support -c for new-session, based on code from J Raynor.

This commit is contained in:
Nicholas Marriott
2013-10-01 23:48:03 +01:00
parent d62121e7bb
commit 9389cfbec9
7 changed files with 66 additions and 47 deletions

View File

@ -82,7 +82,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'))