]> git.eshelyaron.com Git - emacs.git/commitdiff
(fast_find_position): Make sure not to consider rows
authorGerd Moellmann <gerd@gnu.org>
Thu, 23 Mar 2000 11:49:14 +0000 (11:49 +0000)
committerGerd Moellmann <gerd@gnu.org>
Thu, 23 Mar 2000 11:49:14 +0000 (11:49 +0000)
not visible in the window.

src/xterm.c

index 9516de7e03300eccb331d4ecb212bfb7eb78f34f..d49e96cc9bb06305eb3852c61c94ffea2d7a0296 100644 (file)
@@ -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;