diff --git a/cmd-new-window.c b/cmd-new-window.c index 7d3eeb45..30b84ac3 100644 --- a/cmd-new-window.c +++ b/cmd-new-window.c @@ -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;