From 11f79dfd31595cca630e015a7b76c32bdcf625d5 Mon Sep 17 00:00:00 2001 From: nick black Date: Wed, 14 Apr 2021 03:25:28 -0400 Subject: [PATCH] visual_render_pixels: don't use last line of visual area #1479 --- src/lib/visual.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/visual.c b/src/lib/visual.c index 20a7d9feb..15cde3912 100644 --- a/src/lib/visual.c +++ b/src/lib/visual.c @@ -601,6 +601,7 @@ ncplane* ncvisual_render_pixels(notcurses* nc, ncvisual* ncv, const struct blits disprows = ncv->rows; }else{ notcurses_term_dim_yx(nc, &disprows, &dispcols); + --disprows; // some terminals scroll when bitmaps hit the last line dispcols *= nc->tcache.cellpixx; disprows *= nc->tcache.cellpixy; if(scaling == NCSCALE_SCALE || scaling == NCSCALE_SCALE_HIRES){