changeset 75317:0d8f305c19ce

(try_window): Clear mouse-face highlights first.
author Chong Yidong <cyd@stupidchicken.com>
date Sat, 20 Jan 2007 21:03:22 +0000
parents 40c920747b91
children c5e4b1caea9a
files src/xdisp.c
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Sat Jan 20 21:03:10 2007 +0000
+++ b/src/xdisp.c	Sat Jan 20 21:03:22 2007 +0000
@@ -13538,6 +13538,15 @@
   struct window *w = XWINDOW (window);
   struct it it;
   struct glyph_row *last_text_row = NULL;
+  struct frame *f = XFRAME (w->frame);
+
+  /* Clear any existing mouse-face highlights.  */
+  if (FRAME_WINDOW_P (f))
+    {
+      update_begin (f);
+      rif->clear_window_mouse_face (w);
+      update_end (f);
+    }
 
   /* Make POS the new window start.  */
   set_marker_both (w->start, Qnil, CHARPOS (pos), BYTEPOS (pos));