[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.258 and 1.259

version 1.258, 2017/04/05 10:49:46 version 1.259, 2017/04/16 20:32:14
Line 693 
Line 693 
 {  {
         struct grid_cell         gc, last;          struct grid_cell         gc, last;
         u_int                    i, j, sx, width;          u_int                    i, j, sx, width;
         int                      flags = (tty->flags & TTY_NOCURSOR);          int                      flags, cleared = 0;
         char                     buf[512];          char                     buf[512];
         size_t                   len;          size_t                   len;
   
           flags = (tty->flags & TTY_NOCURSOR);
         tty->flags |= TTY_NOCURSOR;          tty->flags |= TTY_NOCURSOR;
         tty_update_mode(tty, tty->mode, s);          tty_update_mode(tty, tty->mode, s);
   
Line 709 
Line 710 
         if (sx > tty->sx)          if (sx > tty->sx)
                 sx = tty->sx;                  sx = tty->sx;
   
           if (screen_size_x(s) < tty->sx &&
               ox == 0 &&
               sx != screen_size_x(s) &&
               tty_term_has(tty->term, TTYC_EL1) &&
               !tty_fake_bce(tty, wp, 8)) {
                   tty_default_attributes(tty, wp, 8);
                   tty_cursor(tty, screen_size_x(s) - 1, oy + py);
                   tty_putcode(tty, TTYC_EL1);
                   cleared = 1;
           }
         tty_cursor(tty, ox, oy + py);          tty_cursor(tty, ox, oy + py);
   
         memcpy(&last, &grid_default_cell, sizeof last);          memcpy(&last, &grid_default_cell, sizeof last);
Line 763 
Line 774 
                 tty_putn(tty, buf, len, width);                  tty_putn(tty, buf, len, width);
         }          }
   
         if (sx < tty->sx) {          if (!cleared && sx < tty->sx) {
                 tty_default_attributes(tty, wp, 8);                  tty_default_attributes(tty, wp, 8);
   
                 tty_cursor(tty, ox + sx, oy + py);                  tty_cursor(tty, ox + sx, oy + py);

Legend:
Removed from v.1.258  
changed lines
  Added in v.1.259