summaryrefslogtreecommitdiffstats
path: root/tty.c
diff options
context:
space:
mode:
authornicm <nicm>2021-06-10 07:59:31 +0000
committernicm <nicm>2021-06-10 07:59:31 +0000
commita35c897f0f16a9dc578c9ebfe4c4c4b0d73002aa (patch)
treeb923cde5c37d167ca9b8c91c7e1a0e20bd81cb1e /tty.c
parent1e879ef458a21ea4dd266761757537fbbf567eee (diff)
Do not clear region based on current cursor position, this is not
necessary anymore and causes problems, GitHub issue 2735.
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c9
1 files 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? */