changeset 76069:898ccefda9ce

(update_text_area): Clear mouse face on header lines.
author Kim F. Storm <storm@cua.dk>
date Thu, 22 Feb 2007 19:52:41 +0000
parents 2b1a4d9a1798
children 1029d540daf5
files src/dispnew.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/dispnew.c	Thu Feb 22 19:52:31 2007 +0000
+++ b/src/dispnew.c	Thu Feb 22 19:52:41 2007 +0000
@@ -4398,8 +4398,10 @@
 	 mouse-face areas after scrolling and other operations.
 	 However, it causes excessive flickering when mouse is moved
 	 across the mode line.  Luckily, turning it off for the mode
-	 line doesn't seem to hurt anything. -- cyd.  */
-      || (current_row->mouse_face_p && !current_row->mode_line_p)
+	 line doesn't seem to hurt anything. -- cyd.
+         But it is still needed for the header line. -- kfs.  */
+      || (current_row->mouse_face_p
+	  && !(current_row->mode_line_p && vpos > 0))
       || current_row->x != desired_row->x)
     {
       rif->cursor_to (vpos, 0, desired_row->y, desired_row->x);