changeset 38354:db78c8220a21

(update_window): Don't skip the header-line update when scrolling_window returns 0.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 10 Jul 2001 16:16:48 +0000
parents ff4a8bdab138
children a4dc672653c8
files src/dispnew.c
diffstat 1 files changed, 2 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/src/dispnew.c	Tue Jul 10 14:22:13 2001 +0000
+++ b/src/dispnew.c	Tue Jul 10 16:16:48 2001 +0000
@@ -4085,18 +4085,8 @@
       
       /* Try reusing part of the display by copying.  */
       if (row < end && !desired_matrix->no_scrolling_p)
-	{
-	  int rc = scrolling_window (w, header_line_row != NULL);
-	  if (rc < 0)
-	    {
-	      /* All rows were found to be equal.  */
-	      paused_p = 0;
-	      goto set_cursor;
-	    }
-	  else if (rc > 0)
-	    force_p = 1;
-	  changed_p = 1;
-	}
+	if (scrolling_window (w, header_line_row != NULL) > 0)
+	  force_p = changed_p = 1;
 
       /* Update the top mode line after scrolling because a new top
 	 line would otherwise overwrite lines at the top of the window
@@ -4142,8 +4132,6 @@
       /* Was display preempted?  */
       paused_p = row < end;
       
-    set_cursor:
-      
       /* Fix the appearance of overlapping(overlapped rows.  */
       if (!paused_p && !w->pseudo_window_p)
 	{