mirror of
https://github.com/tmux/tmux.git
synced 2025-09-08 02:56:59 +00:00
Support -c for new-session, based on code from J Raynor.
This commit is contained in:
@ -102,7 +102,7 @@ cmd_new_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'));
|
||||
|
||||
if (idx == -1)
|
||||
idx = -1 - options_get_number(&s->options, "base-index");
|
||||
|
Reference in New Issue
Block a user