[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.11 and 1.12

version 1.11, 2009/12/03 22:50:10 version 1.12, 2010/01/19 21:27:47
Line 129 
Line 129 
         wl = NULL;          wl = NULL;
         if (idx != -1)          if (idx != -1)
                 wl = winlink_find_by_index(&s->windows, idx);                  wl = winlink_find_by_index(&s->windows, idx);
         if (wl != NULL) {          if (wl != NULL && data->flag_kill) {
                 if (data->flag_kill) {                  /*
                         /*                   * Can't use session_detach as it will destroy session if this
                          * Can't use session_detach as it will destroy session                   * makes it empty.
                          * if this makes it empty.                   */
                          */                  session_alert_cancel(s, wl);
                         session_alert_cancel(s, wl);                  winlink_stack_remove(&s->lastw, wl);
                         winlink_stack_remove(&s->lastw, wl);                  winlink_remove(&s->windows, wl);
                         winlink_remove(&s->windows, wl);  
   
                         /* Force select/redraw if current. */                  /* Force select/redraw if current. */
                         if (wl == s->curw) {                  if (wl == s->curw) {
                                 data->flag_detached = 0;                          data->flag_detached = 0;
                                 s->curw = NULL;                          s->curw = NULL;
                         }  
                 }                  }
         }          }
   

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12