changeset 37669:b88adb23e3e1

(try_window_id): Fix case of all changes before the window start.
author Gerd Moellmann <gerd@gnu.org>
date Thu, 10 May 2001 12:40:21 +0000
parents cf76004c6076
children 0953aba2aebd
files src/xdisp.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Thu May 10 12:25:51 2001 +0000
+++ b/src/xdisp.c	Thu May 10 12:40:21 2001 +0000
@@ -11179,9 +11179,9 @@
      be adjusted, of course.  */
   row = MATRIX_ROW (w->current_matrix, XFASTINT (w->window_end_vpos));
   if (MATRIX_ROW_DISPLAYS_TEXT_P (row)
-      && ((first_changed_charpos < CHARPOS (start)
+      && ((last_changed_charpos < CHARPOS (start)
 	   && CHARPOS (start) == BEGV)
-	  || (first_changed_charpos < CHARPOS (start) - 1
+	  || (last_changed_charpos < CHARPOS (start) - 1
 	      && FETCH_BYTE (BYTEPOS (start) - 1) == '\n')))
     {
       int Z_old, delta, Z_BYTE_old, delta_bytes;