[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.172 and 1.173

version 1.172, 2020/04/18 17:20:25 version 1.173, 2020/04/20 14:59:31
Line 119 
Line 119 
         ttyctx->orupper = s->rupper;          ttyctx->orupper = s->rupper;
   
         if (sync && !ctx->sync && ttyctx->wp != NULL) {          if (sync && !ctx->sync && ttyctx->wp != NULL) {
                 log_debug("%s: starting sync", __func__);  
                 tty_write(tty_cmd_syncstart, ttyctx);                  tty_write(tty_cmd_syncstart, ttyctx);
                 ctx->sync = 1;                  ctx->sync = 1;
         }          }
Line 184 
Line 183 
 void  void
 screen_write_stop(struct screen_write_ctx *ctx)  screen_write_stop(struct screen_write_ctx *ctx)
 {  {
         struct tty_ctx  ttyctx;  
   
         screen_write_collect_end(ctx);          screen_write_collect_end(ctx);
         screen_write_collect_flush(ctx, 0, __func__);          screen_write_collect_flush(ctx, 0, __func__);
   
Line 194 
Line 191 
         if (ctx->wp != NULL) {          if (ctx->wp != NULL) {
                 ctx->wp->written += ctx->written;                  ctx->wp->written += ctx->written;
                 ctx->wp->skipped += ctx->skipped;                  ctx->wp->skipped += ctx->skipped;
         }  
   
         if (ctx->sync) {  
                 screen_write_initctx(ctx, &ttyctx, 0);  
                 tty_write(tty_cmd_syncend, &ttyctx);  
                 log_debug("%s: ending sync", __func__);  
         }          }
   
         free(ctx->item);          free(ctx->item);

Legend:
Removed from v.1.172  
changed lines
  Added in v.1.173