[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.290 and 1.291

version 1.290, 2017/06/06 14:53:28 version 1.291, 2017/07/21 14:25:29
Line 885 
Line 885 
         u_int                    i, j, sx, nx, width;          u_int                    i, j, sx, nx, width;
         int                      flags, cleared = 0;          int                      flags, cleared = 0;
         char                     buf[512];          char                     buf[512];
         size_t                   len;          size_t                   len, old_len;
   
         flags = (tty->flags & TTY_NOCURSOR);          flags = (tty->flags & TTY_NOCURSOR);
         tty->flags |= TTY_NOCURSOR;          tty->flags |= TTY_NOCURSOR;
Line 973 
Line 973 
                 }                  }
         }          }
         if (len != 0) {          if (len != 0) {
                 tty_attributes(tty, &last, wp);                  if (grid_cells_equal(&last, &grid_default_cell)) {
                 tty_putn(tty, buf, len, width);                          old_len = len;
                           while (len > 0 && buf[len - 1] == ' ')
                                   len--;
                           log_debug("%s: trimmed %zu spaces", __func__,
                               old_len - len);
                   }
                   if (len != 0) {
                           tty_attributes(tty, &last, wp);
                           tty_putn(tty, buf, len, width);
                   }
         }          }
   
         nx = screen_size_x(s) - sx;          nx = screen_size_x(s) - sx;

Legend:
Removed from v.1.290  
changed lines
  Added in v.1.291