From: Gerd Moellmann Date: Thu, 23 Mar 2000 11:49:14 +0000 (+0000) Subject: (fast_find_position): Make sure not to consider rows X-Git-Tag: emacs-pretest-21.0.90~4526 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4b0bb6f3a9d5c5bc5e25237e63bab4c586b37dd5;p=emacs.git (fast_find_position): Make sure not to consider rows not visible in the window. --- 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;