(try_window): Clear mouse-face highlights first.
This commit is contained in:
parent
7d10072747
commit
49a17db31c
1 changed files with 9 additions and 0 deletions
|
@ -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. */
|
||||
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));
|
||||
|
|
Loading…
Add table
Reference in a new issue