[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.37 and 1.38

version 1.37, 2009/10/10 10:36:46 version 1.38, 2009/10/11 22:35:10
Line 462 
Line 462 
                 if (screen_check_selection(s, i, py)) {                  if (screen_check_selection(s, i, py)) {
                         memcpy(&tmpgc, &s->sel.cell, sizeof tmpgc);                          memcpy(&tmpgc, &s->sel.cell, sizeof tmpgc);
                         tmpgc.data = gc->data;                          tmpgc.data = gc->data;
                         tmpgc.flags = gc->flags & ~(GRID_FLAG_FG256|GRID_FLAG_BG256);                          tmpgc.flags = gc->flags &
                         tmpgc.flags |= s->sel.cell.flags & (GRID_FLAG_FG256|GRID_FLAG_BG256);                              ~(GRID_FLAG_FG256|GRID_FLAG_BG256);
                           tmpgc.flags |= s->sel.cell.flags &
                               (GRID_FLAG_FG256|GRID_FLAG_BG256);
                         tty_cell(tty, &tmpgc, gu);                          tty_cell(tty, &tmpgc, gu);
                 } else                  } else
                         tty_cell(tty, gc, gu);                          tty_cell(tty, gc, gu);
Line 671 
Line 673 
                 return;                  return;
         }          }
   
         tty_reset(tty);  
   
         tty_region(tty, ctx->orupper, ctx->orlower, wp->yoff);  
   
         if (ctx->ocy == ctx->orupper) {          if (ctx->ocy == ctx->orupper) {
                   tty_reset(tty);
                   tty_region(tty, ctx->orupper, ctx->orlower, wp->yoff);
                 tty_cursor(tty, ctx->ocx, ctx->orupper, wp->xoff, wp->yoff);                  tty_cursor(tty, ctx->ocx, ctx->orupper, wp->xoff, wp->yoff);
                 tty_putcode(tty, TTYC_RI);                  tty_putcode(tty, TTYC_RI);
         }          }
Line 692 
Line 692 
                 tty_redraw_region(tty, ctx);                  tty_redraw_region(tty, ctx);
                 return;                  return;
         }          }
   
   
         if (ctx->ocy == ctx->orlower) {          if (ctx->ocy == ctx->orlower) {
                 tty_reset(tty);                  tty_reset(tty);

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.38