=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/cmd-split-window.c,v retrieving revision 1.19 retrieving revision 1.20 diff -c -r1.19 -r1.20 *** src/usr.bin/tmux/cmd-split-window.c 2010/01/07 20:52:18 1.19 --- src/usr.bin/tmux/cmd-split-window.c 2010/06/27 02:56:59 1.20 *************** *** 1,4 **** ! /* $OpenBSD: cmd-split-window.c,v 1.19 2010/01/07 20:52:18 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: cmd-split-window.c,v 1.20 2010/06/27 02:56:59 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott *************** *** 170,179 **** cmd = data->cmd; if (cmd == NULL) cmd = options_get_string(&s->options, "default-command"); ! if (ctx->cmdclient == NULL || ctx->cmdclient->cwd == NULL) ! cwd = options_get_string(&s->options, "default-path"); ! else ! cwd = ctx->cmdclient->cwd; type = LAYOUT_TOPBOTTOM; if (data->flag_horizontal) --- 170,182 ---- cmd = data->cmd; if (cmd == NULL) cmd = options_get_string(&s->options, "default-command"); ! cwd = options_get_string(&s->options, "default-path"); ! if (*cwd == '\0') { ! if (ctx->cmdclient != NULL && ctx->cmdclient->cwd != NULL) ! cwd = ctx->cmdclient->cwd; ! else ! cwd = s->cwd; ! } type = LAYOUT_TOPBOTTOM; if (data->flag_horizontal)