summaryrefslogtreecommitdiffstats
path: root/cmd-split-window.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-07-07 07:01:10 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-07-07 07:01:10 +0000
commite538d4adae2b17ad177f340091a241d212b2b5c1 (patch)
treea813012e3d4f2a142349354604a06f1df64925c1 /cmd-split-window.c
parenteb424cf63d0a4d0e9f8531ed8c4dab632725b0fe (diff)
The fix for default-path (use target session options instead of global options)
is required here as well, doh.
Diffstat (limited to 'cmd-split-window.c')
-rw-r--r--cmd-split-window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-split-window.c b/cmd-split-window.c
index 28f42b64..a46b23a5 100644
--- a/cmd-split-window.c
+++ b/cmd-split-window.c
@@ -154,7 +154,7 @@ cmd_split_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;