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

Diff for /src/usr.bin/tmux/tty.c between version 1.369 and 1.370

version 1.369, 2020/05/16 14:46:14 version 1.370, 2020/05/16 14:53:23
Line 2690 
Line 2690 
 tty_default_colours(struct grid_cell *gc, struct window_pane *wp)  tty_default_colours(struct grid_cell *gc, struct window_pane *wp)
 {  {
         struct options  *oo = wp->options;          struct options  *oo = wp->options;
         struct style    *style, *active_style;  
         int              c;          int              c;
   
         if (wp->flags & PANE_STYLECHANGED) {          if (wp->flags & PANE_STYLECHANGED) {
                 wp->flags &= ~PANE_STYLECHANGED;                  wp->flags &= ~PANE_STYLECHANGED;
                   style_apply(&wp->cached_active_gc, oo, "window-active-style");
                 active_style = options_get_style(oo, "window-active-style");                  style_apply(&wp->cached_gc, oo, "window-style");
                 style = options_get_style(oo, "window-style");  
   
                 style_copy(&wp->cached_active_style, active_style);  
                 style_copy(&wp->cached_style, style);  
         } else {  
                 active_style = &wp->cached_active_style;  
                 style = &wp->cached_style;  
         }          }
   
         if (gc->fg == 8) {          if (gc->fg == 8) {
                 if (wp == wp->window->active && active_style->gc.fg != 8)                  if (wp == wp->window->active && wp->cached_active_gc.fg != 8)
                         gc->fg = active_style->gc.fg;                          gc->fg = wp->cached_active_gc.fg;
                 else                  else
                         gc->fg = style->gc.fg;                          gc->fg = wp->cached_gc.fg;
   
                 if (gc->fg != 8) {                  if (gc->fg != 8) {
                         c = window_pane_get_palette(wp, gc->fg);                          c = window_pane_get_palette(wp, gc->fg);
Line 2720 
Line 2712 
         }          }
   
         if (gc->bg == 8) {          if (gc->bg == 8) {
                 if (wp == wp->window->active && active_style->gc.bg != 8)                  if (wp == wp->window->active && wp->cached_active_gc.bg != 8)
                         gc->bg = active_style->gc.bg;                          gc->bg = wp->cached_active_gc.bg;
                 else                  else
                         gc->bg = style->gc.bg;                          gc->bg = wp->cached_gc.bg;
   
                 if (gc->bg != 8) {                  if (gc->bg != 8) {
                         c = window_pane_get_palette(wp, gc->bg);                          c = window_pane_get_palette(wp, gc->bg);

Legend:
Removed from v.1.369  
changed lines
  Added in v.1.370