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

Diff for /src/usr.bin/tmux/screen-redraw.c between version 1.86 and 1.87

version 1.86, 2021/08/11 09:05:21 version 1.87, 2021/08/11 20:49:55
Line 800 
Line 800 
 static void  static void
 screen_redraw_draw_pane(struct screen_redraw_ctx *ctx, struct window_pane *wp)  screen_redraw_draw_pane(struct screen_redraw_ctx *ctx, struct window_pane *wp)
 {  {
         struct client   *c = ctx->c;          struct client           *c = ctx->c;
         struct window   *w = c->session->curw->window;          struct window           *w = c->session->curw->window;
         struct tty      *tty = &c->tty;          struct tty              *tty = &c->tty;
         struct screen   *s;          struct screen           *s = wp->screen;
         struct grid_cell defaults;          struct colour_palette   *palette = &wp->palette;
         u_int            i, j, top, x, y, width;          struct grid_cell         defaults;
           u_int                    i, j, top, x, y, width;
   
         log_debug("%s: %s @%u %%%u", __func__, c->name, w->id, wp->id);          log_debug("%s: %s @%u %%%u", __func__, c->name, w->id, wp->id);
   
Line 815 
Line 816 
                 top = ctx->statuslines;                  top = ctx->statuslines;
         else          else
                 top = 0;                  top = 0;
   
         s = wp->screen;  
         for (j = 0; j < wp->sy; j++) {          for (j = 0; j < wp->sy; j++) {
                 if (wp->yoff + j < ctx->oy || wp->yoff + j >= ctx->oy + ctx->sy)                  if (wp->yoff + j < ctx->oy || wp->yoff + j >= ctx->oy + ctx->sy)
                         continue;                          continue;
Line 849 
Line 848 
                     __func__, c->name, wp->id, i, j, x, y, width);                      __func__, c->name, wp->id, i, j, x, y, width);
   
                 tty_default_colours(&defaults, wp);                  tty_default_colours(&defaults, wp);
                 tty_draw_line(tty, s, i, j, width, x, y, &defaults,                  tty_draw_line(tty, s, i, j, width, x, y, &defaults, palette);
                     wp->palette);  
         }          }
 }  }

Legend:
Removed from v.1.86  
changed lines
  Added in v.1.87