diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-07-08 17:57:27 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-07-08 17:57:27 +0000 |
commit | 84da2f32ec803a670edb02f08cc706a3de8c19da (patch) | |
tree | 14236a548b00c9b9a0cd8215e9dea41dd6522088 /cmd-new-window.c | |
parent | b7a272fe6d1b1cfb37c98e3a855fe7ae55a3016e (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-new-window.c b/cmd-new-window.c index 76872b5a..fe0729f7 100644 --- a/cmd-new-window.c +++ b/cmd-new-window.c @@ -1,4 +1,4 @@ -/* $Id: cmd-new-window.c,v 1.31 2009-01-23 16:59:14 nicm Exp $ */ +/* $OpenBSD: cmd-new-window.c,v 1.2 2009/07/07 06:58:49 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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; |