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:
Nicholas Marriott 2009-07-07 06:58:49 +00:00
parent 69e150b7e3
commit eb424cf63d

View File

@ -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;