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

Diff for /src/usr.bin/tmux/cmd-set-option.c between version 1.46 and 1.47

version 1.46, 2011/01/04 02:03:41 version 1.47, 2011/01/26 01:54:56
Line 87 
Line 87 
         struct winlink                          *wl;          struct winlink                          *wl;
         struct client                           *c;          struct client                           *c;
         struct options                          *oo;          struct options                          *oo;
         struct jobs                             *jobs;  
         struct job                              *job, *nextjob;  
         const char                              *optstr, *valstr;          const char                              *optstr, *valstr;
         u_int                                    i;          u_int                                    i;
         int                                      try_again;  
   
         /* Work out the options tree and table to use. */          /* Work out the options tree and table to use. */
         if (args_has(self->args, 's')) {          if (args_has(self->args, 's')) {
Line 181 
Line 178 
             strcmp(oe->name, "window-status-format") == 0) {              strcmp(oe->name, "window-status-format") == 0) {
                 for (i = 0; i < ARRAY_LENGTH(&clients); i++) {                  for (i = 0; i < ARRAY_LENGTH(&clients); i++) {
                         c = ARRAY_ITEM(&clients, i);                          c = ARRAY_ITEM(&clients, i);
                         if (c == NULL || c->session == NULL)                          if (c != NULL && c->session != NULL)
                                 continue;                                  server_redraw_client(c);
   
                         jobs = &c->status_jobs;  
                         do {  
                                 try_again = 0;  
                                 job = RB_ROOT(jobs);  
                                 while (job != NULL) {  
                                         nextjob = RB_NEXT(jobs, jobs, job);  
                                         if (job->flags & JOB_PERSIST) {  
                                                 job_remove(jobs, job);  
                                                 try_again = 1;  
                                                 break;  
                                         }  
                                         job = nextjob;  
                                 }  
                         } while (try_again);  
                         server_redraw_client(c);  
                 }                  }
         }          }
   

Legend:
Removed from v.1.46  
changed lines
  Added in v.1.47