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

Diff for /src/usr.bin/tmux/input.c between version 1.155 and 1.156

version 1.155, 2019/05/30 20:54:03 version 1.156, 2019/06/20 11:59:59
Line 2347 
Line 2347 
 {  {
         struct window_pane      *wp = ictx->wp;          struct window_pane      *wp = ictx->wp;
         u_int                    r, g, b;          u_int                    r, g, b;
           char                     tmp[16];
   
         if (sscanf(p, "rgb:%2x/%2x/%2x", &r, &g, &b) != 3)          if (sscanf(p, "rgb:%2x/%2x/%2x", &r, &g, &b) != 3)
             goto bad;              goto bad;
           xsnprintf(tmp, sizeof tmp, "fg=#%02x%02x%02x", r, g, b);
           options_set_style(wp->options, "window-style", 1, tmp);
           options_set_style(wp->options, "window-active-style", 1, tmp);
           wp->flags |= (PANE_REDRAW|PANE_STYLECHANGED);
   
         wp->style.gc.fg = colour_join_rgb(r, g, b);  
         wp->flags |= PANE_REDRAW;  
   
         return;          return;
   
 bad:  bad:
Line 2366 
Line 2368 
 {  {
         struct window_pane      *wp = ictx->wp;          struct window_pane      *wp = ictx->wp;
         u_int                    r, g, b;          u_int                    r, g, b;
           char                     tmp[16];
   
         if (sscanf(p, "rgb:%2x/%2x/%2x", &r, &g, &b) != 3)          if (sscanf(p, "rgb:%2x/%2x/%2x", &r, &g, &b) != 3)
             goto bad;              goto bad;
           xsnprintf(tmp, sizeof tmp, "bg=#%02x%02x%02x", r, g, b);
         wp->style.gc.bg = colour_join_rgb(r, g, b);          options_set_style(wp->options, "window-style", 1, tmp);
         wp->flags |= PANE_REDRAW;          options_set_style(wp->options, "window-active-style", 1, tmp);
           wp->flags |= (PANE_REDRAW|PANE_STYLECHANGED);
   
         return;          return;
   

Legend:
Removed from v.1.155  
changed lines
  Added in v.1.156