Do not clear region based on current cursor position, this is not necessary

anymore and causes problems, GitHub issue 2735.
pull/2739/head
Nicholas Marriott 2021-06-09 14:46:24 +01:00
parent d8feffd2bf
commit c827f5092d
1 changed files with 2 additions and 7 deletions

5
tty.c
View File

@ -958,14 +958,9 @@ 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);
}
}
/* Is this position visible in the pane? */
static int