[BACK]Return to cmd-new-window.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/cmd-new-window.c between version 1.14 and 1.15

version 1.14, 2010/06/21 01:27:46 version 1.15, 2010/06/27 02:56:59
Line 176 
Line 176 
         cmd = data->cmd;          cmd = data->cmd;
         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)          cwd = options_get_string(&s->options, "default-path");
                 cwd = options_get_string(&s->options, "default-path");          if (*cwd == '\0') {
         else                  if (ctx->cmdclient != NULL && ctx->cmdclient->cwd != NULL)
                 cwd = ctx->cmdclient->cwd;                          cwd = ctx->cmdclient->cwd;
                   else
                           cwd = s->cwd;
           }
   
         if (idx == -1)          if (idx == -1)
                 idx = -1 - options_get_number(&s->options, "base-index");                  idx = -1 - options_get_number(&s->options, "base-index");

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15