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

Diff for /src/usr.bin/tmux/screen-write.c between version 1.89 and 1.90

version 1.89, 2016/05/30 09:32:24 version 1.90, 2016/06/06 07:28:52
Line 989 
Line 989 
         if (skip)          if (skip)
                 skip = (memcmp(&now_gc, gc, sizeof now_gc) == 0);                  skip = (memcmp(&now_gc, gc, sizeof now_gc) == 0);
   
         /* Set the cell. */          /* Update the selection the flag and set the cell. */
         if (!skip)          selected = screen_check_selection(s, s->cx, s->cy);
           if (selected && ~gc->flags & GRID_FLAG_SELECTED) {
                   skip = 0;
                   memcpy(&tmp_gc, gc, sizeof tmp_gc);
                   tmp_gc.flags |= GRID_FLAG_SELECTED;
                   grid_view_set_cell(gd, s->cx, s->cy, &tmp_gc);
           } else if (!selected && gc->flags & GRID_FLAG_SELECTED) {
                   skip = 0;
                   memcpy(&tmp_gc, gc, sizeof tmp_gc);
                   tmp_gc.flags &= ~GRID_FLAG_SELECTED;
                   grid_view_set_cell(gd, s->cx, s->cy, &tmp_gc);
           } else if (!skip)
                 grid_view_set_cell(gd, s->cx, s->cy, gc);                  grid_view_set_cell(gd, s->cx, s->cy, gc);
   
         /*          /*
Line 1008 
Line 1019 
                 ttyctx.num = width;                  ttyctx.num = width;
                 tty_write(tty_cmd_insertcharacter, &ttyctx);                  tty_write(tty_cmd_insertcharacter, &ttyctx);
         }          }
   
         /* Check if this is selected. */  
         selected = screen_check_selection(s, s->cx - width, s->cy);  
         if (selected)  
                 skip = 0;  
   
         /* Save last cell if it will be needed. */          /* Save last cell if it will be needed. */
         if (!skip && ctx->wp != NULL && ttyctx.ocx > ctx->wp->sx - width)          if (!skip && ctx->wp != NULL && ttyctx.ocx > ctx->wp->sx - width)

Legend:
Removed from v.1.89  
changed lines
  Added in v.1.90