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

Diff for /src/usr.bin/tmux/cmd-find.c between version 1.2 and 1.3

version 1.2, 2015/04/27 22:42:10 version 1.3, 2015/04/27 22:58:58
Line 125 
Line 125 
         c = NULL;          c = NULL;
         if (clist != NULL) {          if (clist != NULL) {
                 for (i = 0; i < csize; i++) {                  for (i = 0; i < csize; i++) {
                           if (clist[i]->session == NULL)
                                   continue;
                         if (cmd_find_client_better(clist[i], c))                          if (cmd_find_client_better(clist[i], c))
                                 c = clist[i];                                  c = clist[i];
                 }                  }
         } else {          } else {
                 TAILQ_FOREACH(c_loop, &clients, entry) {                  TAILQ_FOREACH(c_loop, &clients, entry) {
                           if (c_loop->session == NULL)
                                   continue;
                         if (cmd_find_client_better(c_loop, c))                          if (cmd_find_client_better(c_loop, c))
                                 c = c_loop;                                  c = c_loop;
                 }                  }

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3