[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.17 and 1.18

version 1.17, 2011/01/04 00:42:47 version 1.18, 2011/12/09 16:28:18
Line 98 
Line 98 
                 cmd = options_get_string(&s->options, "default-command");                  cmd = options_get_string(&s->options, "default-command");
         else          else
                 cmd = args->argv[0];                  cmd = args->argv[0];
         cwd = options_get_string(&s->options, "default-path");          cwd = cmd_get_default_path(ctx);
         if (*cwd == '\0') {  
                 if (ctx->cmdclient != NULL && ctx->cmdclient->cwd != NULL)  
                         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.17  
changed lines
  Added in v.1.18