From 50a5f84cb4accf806dea2235ca8d3749b107aac8 Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 3 Nov 2017 17:02:33 +0000 Subject: Support mouse on preview in tree mode. --- screen-write.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'screen-write.c') diff --git a/screen-write.c b/screen-write.c index 44c28982..5ab472bd 100644 --- a/screen-write.c +++ b/screen-write.c @@ -403,6 +403,8 @@ screen_write_fast_copy(struct screen_write_ctx *ctx, struct screen *src, cy = s->cy; for (yy = py; yy < py + ny; yy++) { + if (yy >= gd->hsize + gd->sy) + break; cx = s->cx; for (xx = px; xx < px + nx; xx++) { if (xx >= gd->linedata[yy].cellsize) -- cgit