changeset 54176:d1e478a807f4

(update_window): Update header line also if there are no other changes in window (move code after set_cursor label).
author Kim F. Storm <storm@cua.dk>
date Sat, 28 Feb 2004 01:02:16 +0000
parents faae5056606e
children 2affc700598b
files src/dispnew.c
diffstat 1 files changed, 10 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/src/dispnew.c	Fri Feb 27 23:55:32 2004 +0000
+++ b/src/dispnew.c	Sat Feb 28 01:02:16 2004 +0000
@@ -4135,16 +4135,6 @@
 	  changed_p = 1;
 	}
 
-      /* Update the header line after scrolling because a new header
-	 line would otherwise overwrite lines at the top of the window
-	 that can be scrolled.  */
-      if (header_line_row && header_line_row->enabled_p)
-	{
-	  header_line_row->y = 0;
-	  update_window_line (w, 0, &mouse_face_overwritten_p);
-	  changed_p = 1;
-	}
-
       /* Update the rest of the lines.  */
       for (n_updated = 0; row < end && (force_p || !input_pending); ++row)
 	if (row->enabled_p)
@@ -4181,6 +4171,16 @@
 
     set_cursor:
 
+      /* Update the header line after scrolling because a new header
+	 line would otherwise overwrite lines at the top of the window
+	 that can be scrolled.  */
+      if (header_line_row && header_line_row->enabled_p)
+	{
+	  header_line_row->y = 0;
+	  update_window_line (w, 0, &mouse_face_overwritten_p);
+	  changed_p = 1;
+	}
+
       /* Fix the appearance of overlapping/overlapped rows.  */
       if (!paused_p && !w->pseudo_window_p)
 	{