[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.324 and 1.325

version 1.324, 2019/05/13 20:10:23 version 1.325, 2019/05/30 07:42:41
Line 527 
Line 527 
 {  {
         const char      *acs;          const char      *acs;
   
           if ((tty->term->flags & TERM_EARLYWRAP) &&
               ch >= 0x20 && ch != 0x7f &&
               tty->cy == tty->sy - 1 &&
               tty->cx + 1 >= tty->sx)
                   return;
   
         if (tty->cell.attr & GRID_ATTR_CHARSET) {          if (tty->cell.attr & GRID_ATTR_CHARSET) {
                 acs = tty_acs_get(tty, ch);                  acs = tty_acs_get(tty, ch);
                 if (acs != NULL)                  if (acs != NULL)
Line 557 
Line 563 
 void  void
 tty_putn(struct tty *tty, const void *buf, size_t len, u_int width)  tty_putn(struct tty *tty, const void *buf, size_t len, u_int width)
 {  {
           if ((tty->term->flags & TERM_EARLYWRAP) &&
               tty->cy == tty->sy - 1 &&
               tty->cx + len >= tty->sx)
                   len = tty->sx - tty->cx - 1;
   
         tty_add(tty, buf, len);          tty_add(tty, buf, len);
         if (tty->cx + width > tty->sx) {          if (tty->cx + width > tty->sx) {
                 tty->cx = (tty->cx + width) - tty->sx;                  tty->cx = (tty->cx + width) - tty->sx;

Legend:
Removed from v.1.324  
changed lines
  Added in v.1.325