[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.283 and 1.284

version 1.283, 2017/05/13 07:41:59 version 1.284, 2017/05/15 07:54:44
Line 838 
Line 838 
                     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);
                         tty_margin_off(tty);                          tty_margin_off(tty);
                         tty_putcode1(tty, TTYC_INDN, ny - 1);                          tty_putcode1(tty, TTYC_INDN, ny);
                         return;                          return;
                 }                  }
   
Line 853 
Line 853 
                     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);
                         tty_margin(tty, px, px + nx - 1);                          tty_margin(tty, px, px + nx - 1);
                         tty_putcode1(tty, TTYC_INDN, ny - 1);                          tty_putcode1(tty, TTYC_INDN, ny);
                         return;                          return;
                 }                  }
         }          }
Line 1214 
Line 1214 
 tty_cmd_scrollup(struct tty *tty, const struct tty_ctx *ctx)  tty_cmd_scrollup(struct tty *tty, const struct tty_ctx *ctx)
 {  {
         struct window_pane      *wp = ctx->wp;          struct window_pane      *wp = ctx->wp;
         u_int                    i, lines;          u_int                    i;
   
         if ((!tty_pane_full_width(tty, ctx) && !tty_use_margin(tty)) ||          if ((!tty_pane_full_width(tty, ctx) && !tty_use_margin(tty)) ||
             tty_fake_bce(tty, wp, 8) ||              tty_fake_bce(tty, wp, 8) ||
Line 1228 
Line 1228 
         tty_region_pane(tty, ctx, ctx->orupper, ctx->orlower);          tty_region_pane(tty, ctx, ctx->orupper, ctx->orlower);
         tty_margin_pane(tty, ctx);          tty_margin_pane(tty, ctx);
   
         /*          if (ctx->num == 1 || !tty_term_has(tty->term, TTYC_INDN)) {
          * Konsole has a bug where it will ignore SU if the parameter is more  
          * than the height of the scroll region. Clamping the parameter doesn't  
          * hurt in any case.  
          */  
         lines = tty->rlower - tty->rupper;  
         if (lines > ctx->num)  
                 lines = ctx->num;  
   
         if (lines == 1 || !tty_term_has(tty->term, TTYC_INDN)) {  
                 tty_cursor(tty, tty->rright, tty->rlower);                  tty_cursor(tty, tty->rright, tty->rlower);
                 for (i = 0; i < lines; i++)                  for (i = 0; i < ctx->num; i++)
                         tty_putc(tty, '\n');                          tty_putc(tty, '\n');
         } else          } else
                 tty_putcode1(tty, TTYC_INDN, lines);                  tty_putcode1(tty, TTYC_INDN, ctx->num);
 }  }
   
 void  void

Legend:
Removed from v.1.283  
changed lines
  Added in v.1.284