diff options
author | 2009-07-07 07:01:10 +0000 | |
---|---|---|
committer | 2009-07-07 07:01:10 +0000 | |
commit | b23a0eb00e12bc481430e5c01e97746ec1369c65 (patch) | |
tree | fee0c79de90e8e14741fb756252f60b10ccbfd83 /usr.bin/tmux/cmd-split-window.c | |
parent | Minor fix: look for default-path in the options for the specified session first (diff) | |
download | wireguard-openbsd-b23a0eb00e12bc481430e5c01e97746ec1369c65.tar.xz wireguard-openbsd-b23a0eb00e12bc481430e5c01e97746ec1369c65.zip |
The fix for default-path (use target session options instead of global options)
is required here as well, doh.
Diffstat (limited to 'usr.bin/tmux/cmd-split-window.c')
-rw-r--r-- | usr.bin/tmux/cmd-split-window.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-split-window.c b/usr.bin/tmux/cmd-split-window.c index 4b044d0f527..0063668e791 100644 --- a/usr.bin/tmux/cmd-split-window.c +++ b/usr.bin/tmux/cmd-split-window.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-split-window.c,v 1.2 2009/06/25 06:48:23 nicm Exp $ */ +/* $OpenBSD: cmd-split-window.c,v 1.3 2009/07/07 07:01:10 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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; |