]> git.eshelyaron.com Git - emacs.git/commitdiff
(try_window_id): Set first_unchanged_at_end_row to NULL
authorKim F. Storm <storm@cua.dk>
Thu, 10 Feb 2005 22:49:16 +0000 (22:49 +0000)
committerKim F. Storm <storm@cua.dk>
Thu, 10 Feb 2005 22:49:16 +0000 (22:49 +0000)
if it moves outside window or it doesn't display text.

src/xdisp.c

index db4b2a244ac9cb9360e4127c85befc93e416461e..0f385dc08df529c6ccc70792b42e92be205d5ea5 100644 (file)
@@ -13824,7 +13824,12 @@ try_window_id (w)
                        bottom_vpos, dy);
 
   if (first_unchanged_at_end_row)
-    first_unchanged_at_end_row += dvpos;
+    {
+      first_unchanged_at_end_row += dvpos;
+      if (first_unchanged_at_end_row->y >= it.last_visible_y
+         || !MATRIX_ROW_DISPLAYS_TEXT_P (first_unchanged_at_end_row))
+       first_unchanged_at_end_row = NULL;
+    }
 
   /* If scrolling up, there may be some lines to display at the end of
      the window.  */
@@ -13881,7 +13886,6 @@ try_window_id (w)
 
   /* Update window_end_pos and window_end_vpos.  */
   if (first_unchanged_at_end_row
-      && first_unchanged_at_end_row->y < it.last_visible_y
       && !last_text_row_at_end)
     {
       /* Window end line if one of the preserved rows from the current