summaryrefslogtreecommitdiffstats
path: root/cmd-new-window.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-07-07 06:58:49 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-07-07 06:58:49 +0000
commiteb424cf63d0a4d0e9f8531ed8c4dab632725b0fe (patch)
tree49b44e30438da65d4ff899e3bbc390189ceca044 /cmd-new-window.c
parent69e150b7e38243e73e3841fe0567ac38b6579357 (diff)
Minor fix: look for default-path in the options for the specified session first
rather than just the global options. From Brandon Mercer, thanks.
Diffstat (limited to 'cmd-new-window.c')
-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;