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

Diff for /src/usr.bin/tmux/cmd-new-session.c between version 1.39 and 1.40

version 1.39, 2011/10/23 08:10:11 version 1.40, 2012/02/02 00:10:11
Line 217 
Line 217 
         if (cmd != NULL && args_has(args, 'n')) {          if (cmd != NULL && args_has(args, 'n')) {
                 w = s->curw->window;                  w = s->curw->window;
   
                 xfree(w->name);                  window_set_name(w, args_get(args, 'n'));
                 w->name = xstrdup(args_get(args, 'n'));  
   
                 options_set_number(&w->options, "automatic-rename", 0);                  options_set_number(&w->options, "automatic-rename", 0);
         }          }

Legend:
Removed from v.1.39  
changed lines
  Added in v.1.40