mirror of
https://github.com/tmate-io/tmate.git
synced 2024-12-25 16:19:02 +01:00
The fix for default-path (use target session options instead of global options)
is required here as well, doh.
This commit is contained in:
parent
84da2f32ec
commit
ff54332b66
@ -1,4 +1,4 @@
|
|||||||
/* $Id: cmd-split-window.c,v 1.15 2009-06-25 16:21:32 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>
|
* 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)
|
if (cmd == NULL)
|
||||||
cmd = options_get_string(&s->options, "default-command");
|
cmd = options_get_string(&s->options, "default-command");
|
||||||
if (ctx->cmdclient == NULL || ctx->cmdclient->cwd == NULL)
|
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
|
else
|
||||||
cwd = ctx->cmdclient->cwd;
|
cwd = ctx->cmdclient->cwd;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user