[BACK]Return to screen-write.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/screen-write.c between version 1.113 and 1.114

version 1.113, 2017/02/16 12:43:08 version 1.114, 2017/02/21 10:30:15
Line 741 
Line 741 
         grid_view_clear(s->grid, 0, s->cy, sx, 1, bg);          grid_view_clear(s->grid, 0, s->cy, sx, 1, bg);
   
         screen_write_collect_clear(ctx, s->cy, 1);          screen_write_collect_clear(ctx, s->cy, 1);
           screen_write_collect_flush(ctx, 0);
         tty_write(tty_cmd_clearline, &ttyctx);          tty_write(tty_cmd_clearline, &ttyctx);
 }  }
   
Line 764 
Line 765 
   
         if (s->cx == 0)          if (s->cx == 0)
                 screen_write_collect_clear(ctx, s->cy, 1);                  screen_write_collect_clear(ctx, s->cy, 1);
         else          screen_write_collect_flush(ctx, 0);
                 screen_write_collect_flush(ctx, 0);  
         tty_write(tty_cmd_clearendofline, &ttyctx);          tty_write(tty_cmd_clearendofline, &ttyctx);
 }  }
   
Line 787 
Line 787 
   
         if (s->cx > sx - 1)          if (s->cx > sx - 1)
                 screen_write_collect_clear(ctx, s->cy, 1);                  screen_write_collect_clear(ctx, s->cy, 1);
         else          screen_write_collect_flush(ctx, 0);
                 screen_write_collect_flush(ctx, 0);  
         tty_write(tty_cmd_clearstartofline, &ttyctx);          tty_write(tty_cmd_clearstartofline, &ttyctx);
 }  }
   
Line 863 
Line 862 
         else          else
                 gl->flags &= ~GRID_LINE_WRAPPED;                  gl->flags &= ~GRID_LINE_WRAPPED;
   
           log_debug("%s: at %u,%u (region %u-%u)", __func__, s->cx, s->cy,
               s->rupper, s->rlower);
   
         if (s->cy == s->rlower) {          if (s->cy == s->rlower) {
                 grid_view_scroll_region_up(gd, s->rupper, s->rlower);                  grid_view_scroll_region_up(gd, s->rupper, s->rlower);
                 screen_write_collect_scroll(ctx);                  screen_write_collect_scroll(ctx);
Line 999 
Line 1001 
                         free(ci);                          free(ci);
                 }                  }
                 ctx->skipped += size;                  ctx->skipped += size;
                 log_debug("discarding %zu bytes on line %u", size, i);                  log_debug("%s: dropped %zu bytes (line %u)", __func__, size, i);
         }          }
 }  }
   
Line 1011 
Line 1013 
         struct screen_write_collect_line        *cl;          struct screen_write_collect_line        *cl;
         u_int                                    y;          u_int                                    y;
   
           log_debug("%s: at %u,%u (region %u-%u)", __func__, s->cx, s->cy,
               s->rupper, s->rlower);
   
         screen_write_collect_clear(ctx, s->rupper, 1);          screen_write_collect_clear(ctx, s->rupper, 1);
         for (y = s->rupper; y < s->rlower; y++) {          for (y = s->rupper; y < s->rlower; y++) {
                 cl = &ctx->list[y + 1];                  cl = &ctx->list[y + 1];
Line 1122 
Line 1127 
         if (s->cx > sx - 1 || ctx->item->used > sx - 1 - s->cx)          if (s->cx > sx - 1 || ctx->item->used > sx - 1 - s->cx)
                 screen_write_collect_end(ctx);                  screen_write_collect_end(ctx);
         if (s->cx > sx - 1) {          if (s->cx > sx - 1) {
                   log_debug("%s: wrapped at %u,%u", __func__, s->cx, s->cy);
                 screen_write_linefeed(ctx, 1);                  screen_write_linefeed(ctx, 1);
                 s->cx = 0;                  s->cx = 0;
         }          }

Legend:
Removed from v.1.113  
changed lines
  Added in v.1.114