[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.279 and 1.280

version 1.279, 2017/05/12 14:13:54 version 1.280, 2017/05/12 23:06:43
Line 830 
Line 830 
                         return;                          return;
                 }                  }
   
                   /* Full lines can be scrolled away to clear them. */
                   if (px == 0 &&
                       px + nx > tty->sx &&
                       ny > 2 &&
                       tty_term_has(tty->term, TTYC_CSR) &&
                       tty_term_has(tty->term, TTYC_INDN)) {
                           tty_region(tty, py, py + ny - 1);
                           tty_margin_off(tty);
                           tty_putcode1(tty, TTYC_INDN, ny);
                           return;
                   }
   
                 /*                  /*
                  * If margins are supported, can just scroll the area off to                   * If margins are supported, can just scroll the area off to
                  * clear it.                   * clear it.
                  */                   */
                 if (nx > 2 &&                  if (nx > 2 &&
                     ny > 2 &&                      ny > 2 &&
                       tty_term_has(tty->term, TTYC_CSR) &&
                     tty_use_margin(tty) &&                      tty_use_margin(tty) &&
                     tty_term_has(tty->term, TTYC_INDN)) {                      tty_term_has(tty->term, TTYC_INDN)) {
                         tty_region(tty, py, py + ny - 1);                          tty_region(tty, py, py + ny - 1);

Legend:
Removed from v.1.279  
changed lines
  Added in v.1.280