summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2021-06-09 14:46:24 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2021-06-10 09:23:54 +0100
commitc827f5092db2142af097e32d02fb73d70acbfa6d (patch)
tree6ac216028ac7c8837a56a146906e5359d55cf7be
parentd8feffd2bfd0c53a3323a4bda830acaafed259ed (diff)
Do not clear region based on current cursor position, this is not necessary
anymore and causes problems, GitHub issue 2735.
-rw-r--r--tty.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/tty.c b/tty.c
index e8a8cbaa..9e7dfde8 100644
--- a/tty.c
+++ b/tty.c
@@ -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? */