[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.54 and 1.55

version 1.54, 2012/03/17 21:33:33 version 1.55, 2012/04/08 06:47:26
Line 87 
Line 87 
         struct winlink                          *wl;          struct winlink                          *wl;
         struct client                           *c;          struct client                           *c;
         struct options                          *oo;          struct options                          *oo;
           struct window                           *w;
         const char                              *optstr, *valstr;          const char                              *optstr, *valstr;
         u_int                                    i;          u_int                                    i;
   
Line 145 
Line 146 
         } else {          } else {
                 if (cmd_set_option_set(self, ctx, oe, oo, valstr) != 0)                  if (cmd_set_option_set(self, ctx, oe, oo, valstr) != 0)
                         return (-1);                          return (-1);
           }
   
           /* Start or stop timers when automatic-rename changed. */
           if (strcmp (oe->name, "automatic-rename") == 0) {
                   for (i = 0; i < ARRAY_LENGTH(&windows); i++) {
                           if ((w = ARRAY_ITEM(&windows, i)) == NULL)
                                   continue;
                           if (options_get_number(&w->options, "automatic-rename"))
                                   queue_window_name(w);
                           else if (event_initialized(&w->name_timer))
                                   evtimer_del(&w->name_timer);
                   }
         }          }
   
         /* Update sizes and redraw. May not need it but meh. */          /* Update sizes and redraw. May not need it but meh. */

Legend:
Removed from v.1.54  
changed lines
  Added in v.1.55