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

Diff for /src/usr.bin/tmux/server-fn.c between version 1.36 and 1.37

version 1.36, 2010/04/17 23:25:16 version 1.37, 2010/06/21 01:27:46
Line 184 
Line 184 
   
         for (i = 0; i < ARRAY_LENGTH(&sessions); i++) {          for (i = 0; i < ARRAY_LENGTH(&sessions); i++) {
                 s = ARRAY_ITEM(&sessions, i);                  s = ARRAY_ITEM(&sessions, i);
                 if (s != NULL && session_has(s, w))                  if (s != NULL && session_has(s, w) != NULL)
                         server_status_session(s);                          server_status_session(s);
         }          }
 }  }
Line 249 
Line 249 
   
         for (i = 0; i < ARRAY_LENGTH(&sessions); i++) {          for (i = 0; i < ARRAY_LENGTH(&sessions); i++) {
                 s = ARRAY_ITEM(&sessions, i);                  s = ARRAY_ITEM(&sessions, i);
                 if (s == NULL || !session_has(s, w))                  if (s == NULL || session_has(s, w) == NULL)
                         continue;                          continue;
                 while ((wl = winlink_find_by_window(&s->windows, w)) != NULL) {                  while ((wl = winlink_find_by_window(&s->windows, w)) != NULL) {
                         if (session_detach(s, wl)) {                          if (session_detach(s, wl)) {
Line 286 
Line 286 
                          * Can't use session_detach as it will destroy session                           * Can't use session_detach as it will destroy session
                          * if this makes it empty.                           * if this makes it empty.
                          */                           */
                         session_alert_cancel(dst, dstwl);                          dstwl->flags &= ~WINLINK_ALERTFLAGS;
                         winlink_stack_remove(&dst->lastw, dstwl);                          winlink_stack_remove(&dst->lastw, dstwl);
                         winlink_remove(&dst->windows, dstwl);                          winlink_remove(&dst->windows, dstwl);
   

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37