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

Diff for /src/usr.bin/tmux/style.c between version 1.5 and 1.6

version 1.5, 2015/02/18 15:32:37 version 1.6, 2015/04/15 15:44:40
Line 160 
Line 160 
 {  {
         int                      value;          int                      value;
         struct grid_cell        *gc;          struct grid_cell        *gc;
           struct options_entry    *o;
   
         /* It's a colour or attribute, but with no -style equivalent. */          /* It's a colour or attribute, but with no -style equivalent. */
         if (newname == NULL)          if (newname == NULL)
                 return;                  return;
   
         gc = options_get_style(oo, newname);          o = options_find1(oo, newname);
         value = options_get_number(oo, name);          if (o == NULL)
                   o = options_set_style (oo, newname, "default", 0);
           gc = &o->style;
   
           o = options_find1(oo, name);
           if (o == NULL)
                   o = options_set_number (oo, name, 8);
           value = o->num;
   
         if (strstr(name, "-bg") != NULL)          if (strstr(name, "-bg") != NULL)
                 colour_set_bg(gc, value);                  colour_set_bg(gc, value);

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6