From 4b0bb6f3a9d5c5bc5e25237e63bab4c586b37dd5 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Thu, 23 Mar 2000 11:49:14 +0000 Subject: [PATCH] (fast_find_position): Make sure not to consider rows not visible in the window. --- src/xterm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/xterm.c b/src/xterm.c index 9516de7e033..d49e96cc9bb 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -6764,6 +6764,9 @@ fast_find_position (w, pos, hpos, vpos, x, y) best_row = row; best_row_vpos = row_vpos; } + + if (row->y + row->height >= yb) + break; ++row; ++row_vpos; -- 2.39.5