[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.55 and 1.56

version 1.55, 2009/10/21 09:36:53 version 1.56, 2009/10/21 13:42:44
Line 684 
Line 684 
         struct window_pane      *wp = ctx->wp;          struct window_pane      *wp = ctx->wp;
         struct screen           *s = wp->screen;          struct screen           *s = wp->screen;
   
           if (ctx->ocy != ctx->orupper)
                   return;
   
         if (wp->xoff != 0 || screen_size_x(s) < tty->sx ||          if (wp->xoff != 0 || screen_size_x(s) < tty->sx ||
             !tty_term_has(tty->term, TTYC_CSR)) {              !tty_term_has(tty->term, TTYC_CSR)) {
                 tty_redraw_region(tty, ctx);                  tty_redraw_region(tty, ctx);
                 return;                  return;
         }          }
   
         if (ctx->ocy == ctx->orupper) {          tty_reset(tty);
                 tty_reset(tty);  
           tty_region_pane(tty, ctx, ctx->orupper, ctx->orlower);
                 tty_region_pane(tty, ctx, ctx->orupper, ctx->orlower);          tty_cursor_pane(tty, ctx, ctx->ocx, ctx->orupper);
                 tty_cursor_pane(tty, ctx, ctx->ocx, ctx->orupper);  
           tty_putcode(tty, TTYC_RI);
                 tty_putcode(tty, TTYC_RI);  
         }  
 }  }
   
 void  void
Line 706 
Line 707 
         struct window_pane      *wp = ctx->wp;          struct window_pane      *wp = ctx->wp;
         struct screen           *s = wp->screen;          struct screen           *s = wp->screen;
   
           if (ctx->ocy != ctx->orlower)
                   return;
   
         if (wp->xoff != 0 || screen_size_x(s) < tty->sx ||          if (wp->xoff != 0 || screen_size_x(s) < tty->sx ||
             !tty_term_has(tty->term, TTYC_CSR)) {              !tty_term_has(tty->term, TTYC_CSR)) {
                 tty_redraw_region(tty, ctx);                  tty_redraw_region(tty, ctx);
Line 720 
Line 724 
         if (ctx->num && !(tty->term->flags & TERM_EARLYWRAP))          if (ctx->num && !(tty->term->flags & TERM_EARLYWRAP))
                 return;                  return;
   
         if (ctx->ocy == ctx->orlower) {          tty_reset(tty);
                 tty_reset(tty);  
           tty_region_pane(tty, ctx, ctx->orupper, ctx->orlower);
                 tty_region_pane(tty, ctx, ctx->orupper, ctx->orlower);          tty_cursor_pane(tty, ctx, ctx->ocx, ctx->ocy);
                 tty_cursor_pane(tty, ctx, ctx->ocx, ctx->ocy);  
           tty_putc(tty, '\n');
                 tty_putc(tty, '\n');  
         }  
 }  }
   
 void  void

Legend:
Removed from v.1.55  
changed lines
  Added in v.1.56