changeset 28281:bd0839655485

(fast_find_position): Make sure not to consider rows not visible in the window.
author Gerd Moellmann <gerd@gnu.org>
date Thu, 23 Mar 2000 11:49:14 +0000
parents 6f0261bc95b8
children 7be51ece2d96
files src/xterm.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Thu Mar 23 04:36:34 2000 +0000
+++ b/src/xterm.c	Thu Mar 23 11:49:14 2000 +0000
@@ -6764,6 +6764,9 @@
 	  best_row = row;
 	  best_row_vpos = row_vpos;
 	}
+
+      if (row->y + row->height >= yb)
+	break;
       
       ++row;
       ++row_vpos;