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

Diff for /src/usr.bin/tmux/session.c between version 1.15 and 1.16

version 1.15, 2009/12/03 22:50:10 version 1.16, 2009/12/22 10:20:08
Line 549 
Line 549 
                 return;                  return;
   
         /* If the current window has vanished, move to the next now. */          /* If the current window has vanished, move to the next now. */
         if (s->curw != NULL) {          if (s->curw != NULL &&
                 while (winlink_find_by_index(ww, s->curw->idx) == NULL)              winlink_find_by_index(ww, s->curw->idx) == NULL &&
                         session_next(s, 0);              session_last(s) != 0 && session_previous(s, 0) != 0)
         }                  session_next(s, 0);
   
         /* Save the old pointer and reset it. */          /* Save the old pointer and reset it. */
         memcpy(&old_windows, &s->windows, sizeof old_windows);          memcpy(&old_windows, &s->windows, sizeof old_windows);

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