mirror of
https://github.com/tmux/tmux.git
synced 2025-01-14 20:58:53 +00:00
Minor fix: look for default-path in the options for the specified session first
rather than just the global options. From Brandon Mercer, thanks.
This commit is contained in:
parent
69e150b7e3
commit
eb424cf63d
@ -164,7 +164,7 @@ cmd_new_window_exec(struct cmd *self, struct cmd_ctx *ctx)
|
||||
if (cmd == NULL)
|
||||
cmd = options_get_string(&s->options, "default-command");
|
||||
if (ctx->cmdclient == NULL || ctx->cmdclient->cwd == NULL)
|
||||
cwd = options_get_string(&global_options, "default-path");
|
||||
cwd = options_get_string(&s->options, "default-path");
|
||||
else
|
||||
cwd = ctx->cmdclient->cwd;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user