Commit 49a17db3 authored by Chong Yidong's avatar Chong Yidong

(try_window): Clear mouse-face highlights first.

parent 7d100727
......@@ -13538,6 +13538,15 @@ try_window (window, pos, check_margins)
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. */
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));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment