From 607e6b1c3339b97408be3d6c2c93a82fcee5251a Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 9 Jun 2021 14:46:24 +0100 Subject: [PATCH] Do not clear region based on current cursor position, this is not necessary anymore and causes problems, GitHub issue 2735. --- tty.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tty.c b/tty.c index 45868fc1..4b1b6777 100644 --- a/tty.c +++ b/tty.c @@ -1005,13 +1005,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? */