[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.370 and 1.371

version 1.370, 2020/05/16 14:53:23 version 1.371, 2020/05/16 15:01:31
Line 2687 
Line 2687 
 }  }
   
 static void  static void
   tty_window_default_style(struct grid_cell *gc, struct window_pane *wp)
   {
           memcpy(gc, &grid_default_cell, sizeof *gc);
           gc->fg = wp->fg;
           gc->bg = wp->bg;
   }
   
   static void
 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;
Line 2694 
Line 2702 
   
         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");  
                 style_apply(&wp->cached_gc, oo, "window-style");                  tty_window_default_style(&wp->cached_active_gc, wp);
                   style_add(&wp->cached_active_gc, oo, "window-active-style",
                       NULL);
                   tty_window_default_style(&wp->cached_gc, wp);
                   style_add(&wp->cached_gc, oo, "window-style", NULL);
         }          }
   
         if (gc->fg == 8) {          if (gc->fg == 8) {

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