[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.315 and 1.316

version 1.315, 2019/03/12 23:21:45 version 1.316, 2019/03/13 22:01:22
Line 1281 
Line 1281 
                     gcp->bg != last.bg ||                      gcp->bg != last.bg ||
                     ux + width + gcp->data.width > nx ||                      ux + width + gcp->data.width > nx ||
                     (sizeof buf) - len < gcp->data.size)) {                      (sizeof buf) - len < gcp->data.size)) {
                           tty_attributes(tty, &last, wp);
                         if (last.flags & GRID_FLAG_CLEARED) {                          if (last.flags & GRID_FLAG_CLEARED) {
                                 log_debug("%s: %zu cleared", __func__, len);                                  log_debug("%s: %zu cleared", __func__, len);
                                 tty_clear_line(tty, wp, aty, atx + ux, width,                                  tty_clear_line(tty, wp, aty, atx + ux, width,
                                     last.bg);                                      last.bg);
                         } else {                          } else {
                                 tty_attributes(tty, &last, wp);  
                                 tty_cursor(tty, atx + ux, aty);                                  tty_cursor(tty, atx + ux, aty);
                                 tty_putn(tty, buf, len, width);                                  tty_putn(tty, buf, len, width);
                         }                          }
Line 1322 
Line 1322 
                 }                  }
         }          }
         if (len != 0 && ((~last.flags & GRID_FLAG_CLEARED) || last.bg != 8)) {          if (len != 0 && ((~last.flags & GRID_FLAG_CLEARED) || last.bg != 8)) {
                   tty_attributes(tty, &last, wp);
                 if (last.flags & GRID_FLAG_CLEARED) {                  if (last.flags & GRID_FLAG_CLEARED) {
                         log_debug("%s: %zu cleared (end)", __func__, len);                          log_debug("%s: %zu cleared (end)", __func__, len);
                         tty_clear_line(tty, wp, aty, atx + ux, width, last.bg);                          tty_clear_line(tty, wp, aty, atx + ux, width, last.bg);
                 } else {                  } else {
                         tty_attributes(tty, &last, wp);  
                         tty_cursor(tty, atx + ux, aty);                          tty_cursor(tty, atx + ux, aty);
                         tty_putn(tty, buf, len, width);                          tty_putn(tty, buf, len, width);
                 }                  }

Legend:
Removed from v.1.315  
changed lines
  Added in v.1.316