[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.97 and 1.98

version 1.97, 2016/10/12 13:24:07 version 1.98, 2016/10/12 15:43:51
Line 103 
Line 103 
         if (ctx->dirty == 0)          if (ctx->dirty == 0)
                 return;                  return;
         dirty = 0;          dirty = 0;
           log_debug("%s: dirty %u", __func__, ctx->dirty);
   
         cx = s->cx;          cx = s->cx;
         cy = s->cy;          cy = s->cy;
Line 1044 
Line 1045 
         screen_write_initctx(ctx, &ttyctx);          screen_write_initctx(ctx, &ttyctx);
   
         /* If in insert mode, make space for the cells. */          /* If in insert mode, make space for the cells. */
         if ((s->mode & MODE_INSERT) && s->cx <= sx - width) {          if (s->mode & MODE_INSERT) {
                 xx = sx - s->cx - width;                  if (s->cx <= sx - width) {
                 grid_move_cells(s->grid, s->cx + width, s->cx, s->cy, xx);                          screen_write_flush(ctx);
                           xx = sx - s->cx - width;
                           grid_view_insert_cells(s->grid, s->cx, s->cy, xx);
                   }
                 insert = 1;                  insert = 1;
         } else          } else
                 insert = 0;                  insert = 0;
Line 1133 
Line 1137 
   
         /* Create space for character in insert mode. */          /* Create space for character in insert mode. */
         if (insert) {          if (insert) {
                 if (!wrapped)  
                         screen_write_flush(ctx);  
                 ttyctx.num = width;                  ttyctx.num = width;
                 tty_write(tty_cmd_insertcharacter, &ttyctx);                  tty_write(tty_cmd_insertcharacter, &ttyctx);
         }          }

Legend:
Removed from v.1.97  
changed lines
  Added in v.1.98