summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cmd-new-window.c2
1 files changed, 1 insertions, 1 deletions
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;