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

Diff for /src/usr.bin/tmux/status.c between version 1.202 and 1.203

version 1.202, 2020/03/12 09:49:43 version 1.203, 2020/05/16 15:01:31
Line 321 
Line 321 
         struct screen_write_ctx          ctx;          struct screen_write_ctx          ctx;
         struct grid_cell                 gc;          struct grid_cell                 gc;
         u_int                            lines, i, n, width = c->tty.sx;          u_int                            lines, i, n, width = c->tty.sx;
         int                              flags, force = 0, changed = 0;          int                              flags, force = 0, changed = 0, fg, bg;
         struct options_entry            *o;          struct options_entry            *o;
         union options_value             *ov;          union options_value             *ov;
         struct format_tree              *ft;          struct format_tree              *ft;
Line 339 
Line 339 
                 return (1);                  return (1);
   
         /* Set up default colour. */          /* Set up default colour. */
         style_apply(&gc, s->options, "status-style");          style_apply(&gc, s->options, "status-style", NULL);
           fg = options_get_number(s->options, "status-fg");
           if (fg != 8)
                   gc.fg = fg;
           bg = options_get_number(s->options, "status-bg");
           if (bg != 8)
                   gc.bg = bg;
         if (!grid_cells_equal(&gc, &sl->style)) {          if (!grid_cells_equal(&gc, &sl->style)) {
                 force = 1;                  force = 1;
                 memcpy(&sl->style, &gc, sizeof sl->style);                  memcpy(&sl->style, &gc, sizeof sl->style);
Line 490 
Line 496 
         if (len > c->tty.sx)          if (len > c->tty.sx)
                 len = c->tty.sx;                  len = c->tty.sx;
   
         style_apply(&gc, s->options, "message-style");          style_apply(&gc, s->options, "message-style", NULL);
   
         screen_write_start(&ctx, NULL, sl->active);          screen_write_start(&ctx, NULL, sl->active);
         screen_write_fast_copy(&ctx, &sl->screen, 0, 0, c->tty.sx, lines - 1);          screen_write_fast_copy(&ctx, &sl->screen, 0, 0, c->tty.sx, lines - 1);
Line 633 
Line 639 
         screen_init(sl->active, c->tty.sx, lines, 0);          screen_init(sl->active, c->tty.sx, lines, 0);
   
         if (c->prompt_mode == PROMPT_COMMAND)          if (c->prompt_mode == PROMPT_COMMAND)
                 style_apply(&gc, s->options, "message-command-style");                  style_apply(&gc, s->options, "message-command-style", NULL);
         else          else
                 style_apply(&gc, s->options, "message-style");                  style_apply(&gc, s->options, "message-style", NULL);
   
         memcpy(&cursorgc, &gc, sizeof cursorgc);          memcpy(&cursorgc, &gc, sizeof cursorgc);
         cursorgc.attr ^= GRID_ATTR_REVERSE;          cursorgc.attr ^= GRID_ATTR_REVERSE;

Legend:
Removed from v.1.202  
changed lines
  Added in v.1.203