Skip to content

Commit

Permalink
Do not clear region based on current cursor position, this is not nec…
Browse files Browse the repository at this point in the history
…essary

anymore and causes problems, GitHub issue 2735.
  • Loading branch information
nicm committed Jun 10, 2021
1 parent d8feffd commit c827f50
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -958,13 +958,8 @@ tty_redraw_region(struct tty *tty, const struct tty_ctx *ctx)
return;
}

if (ctx->ocy < ctx->orupper || ctx->ocy > ctx->orlower) {
for (i = ctx->ocy; i < ctx->sy; i++)
tty_draw_pane(tty, ctx, i);
} else {
for (i = ctx->orupper; i <= ctx->orlower; i++)
tty_draw_pane(tty, ctx, i);
}
for (i = ctx->orupper; i <= ctx->orlower; i++)
tty_draw_pane(tty, ctx, i);
}

/* Is this position visible in the pane? */
Expand Down

0 comments on commit c827f50

Please sign in to comment.