[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.15 and 1.16

version 1.15, 2009/07/22 20:56:58 version 1.16, 2009/07/27 11:33:21
Line 480 
Line 480 
 tty_draw_line(struct tty *tty, struct screen *s, u_int py, u_int ox, u_int oy)  tty_draw_line(struct tty *tty, struct screen *s, u_int py, u_int ox, u_int oy)
 {  {
         const struct grid_cell  *gc;          const struct grid_cell  *gc;
           struct grid_cell         tmpgc;
         const struct grid_utf8  *gu;          const struct grid_utf8  *gu;
         u_int                    i, sx;          u_int                    i, sx;
   
Line 498 
Line 499 
                         gu = grid_view_peek_utf8(s->grid, i, py);                          gu = grid_view_peek_utf8(s->grid, i, py);
   
                 if (screen_check_selection(s, i, py)) {                  if (screen_check_selection(s, i, py)) {
                         s->sel.cell.data = gc->data;                          memcpy(&tmpgc, &s->sel.cell, sizeof tmpgc);
                         tty_cell(tty, &s->sel.cell, gu);                          tmpgc.data = gc->data;
                           tmpgc.flags = gc->flags;
                           tty_cell(tty, &tmpgc, gu);
                 } else                  } else
                         tty_cell(tty, gc, gu);                          tty_cell(tty, gc, gu);
         }          }

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16