[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.76 and 1.77

version 1.76, 2020/05/16 15:34:08 version 1.77, 2020/05/16 16:20:59
Line 242 
Line 242 
     struct window_pane **wpp)      struct window_pane **wpp)
 {  {
         struct window           *w = c->session->curw->window;          struct window           *w = c->session->curw->window;
         struct window_pane      *wp;          struct window_pane      *wp, *active;
         int                      border;          int                      border;
         u_int                    right, line;          u_int                    right, line;
   
Line 254 
Line 254 
                 return (screen_redraw_type_of_cell(c, px, py, pane_status));                  return (screen_redraw_type_of_cell(c, px, py, pane_status));
   
         if (pane_status != PANE_STATUS_OFF) {          if (pane_status != PANE_STATUS_OFF) {
                 wp = w->active;                  active = wp = server_client_get_pane(c);
                 do {                  do {
                         if (!window_pane_visible(wp))                          if (!window_pane_visible(wp))
                                 goto next1;                                  goto next1;
Line 272 
Line 272 
                         wp = TAILQ_NEXT(wp, entry);                          wp = TAILQ_NEXT(wp, entry);
                         if (wp == NULL)                          if (wp == NULL)
                                 wp = TAILQ_FIRST(&w->panes);                                  wp = TAILQ_FIRST(&w->panes);
                 } while (wp != w->active);                  } while (wp != active);
         }          }
   
         wp = w->active;          active = wp = server_client_get_pane(c);
         do {          do {
                 if (!window_pane_visible(wp))                  if (!window_pane_visible(wp))
                         goto next2;                          goto next2;
Line 296 
Line 296 
                 wp = TAILQ_NEXT(wp, entry);                  wp = TAILQ_NEXT(wp, entry);
                 if (wp == NULL)                  if (wp == NULL)
                         wp = TAILQ_FIRST(&w->panes);                          wp = TAILQ_FIRST(&w->panes);
         } while (wp != w->active);          } while (wp != active);
   
         return (CELL_OUTSIDE);          return (CELL_OUTSIDE);
 }  }
Line 330 
Line 330 
         ft = format_create(c, NULL, FORMAT_PANE|wp->id, FORMAT_STATUS);          ft = format_create(c, NULL, FORMAT_PANE|wp->id, FORMAT_STATUS);
         format_defaults(ft, c, c->session, c->session->curw, wp);          format_defaults(ft, c, c->session, c->session->curw, wp);
   
         if (wp == w->active)          if (wp == server_client_get_pane(c))
                 style_apply(&gc, w->options, "pane-active-border-style", ft);                  style_apply(&gc, w->options, "pane-active-border-style", ft);
         else          else
                 style_apply(&gc, w->options, "pane-border-style", ft);                  style_apply(&gc, w->options, "pane-border-style", ft);
Line 558 
Line 558 
         struct client           *c = ctx->c;          struct client           *c = ctx->c;
         struct session          *s = c->session;          struct session          *s = c->session;
         struct window           *w = s->curw->window;          struct window           *w = s->curw->window;
           struct window_pane      *active = server_client_get_pane(c);
         struct options          *oo = w->options;          struct options          *oo = w->options;
         struct grid_cell        *gc;          struct grid_cell        *gc;
         struct format_tree      *ft;          struct format_tree      *ft;
Line 569 
Line 570 
         ft = format_create_defaults(NULL, c, s, s->curw, wp);          ft = format_create_defaults(NULL, c, s, s->curw, wp);
         gc = &wp->border_gc;          gc = &wp->border_gc;
   
         if (screen_redraw_check_is(x, y, ctx->pane_status, w->active)) {          if (screen_redraw_check_is(x, y, ctx->pane_status, active)) {
                 style_apply(gc, oo, "pane-active-border-style", ft);                  style_apply(gc, oo, "pane-active-border-style", ft);
                 gc->attr |= GRID_ATTR_CHARSET;                  gc->attr |= GRID_ATTR_CHARSET;
         } else {          } else {

Legend:
Removed from v.1.76  
changed lines
  Added in v.1.77