diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index e4b5dec7959..3cebb17cd9e 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -13538,6 +13538,15 @@ try_window (window, pos, check_margins) | |||
| 13538 | struct window *w = XWINDOW (window); | 13538 | struct window *w = XWINDOW (window); |
| 13539 | struct it it; | 13539 | struct it it; |
| 13540 | struct glyph_row *last_text_row = NULL; | 13540 | struct glyph_row *last_text_row = NULL; |
| 13541 | struct frame *f = XFRAME (w->frame); | ||
| 13542 | |||
| 13543 | /* Clear any existing mouse-face highlights. */ | ||
| 13544 | if (FRAME_WINDOW_P (f)) | ||
| 13545 | { | ||
| 13546 | update_begin (f); | ||
| 13547 | rif->clear_window_mouse_face (w); | ||
| 13548 | update_end (f); | ||
| 13549 | } | ||
| 13541 | 13550 | ||
| 13542 | /* Make POS the new window start. */ | 13551 | /* Make POS the new window start. */ |
| 13543 | set_marker_both (w->start, Qnil, CHARPOS (pos), BYTEPOS (pos)); | 13552 | set_marker_both (w->start, Qnil, CHARPOS (pos), BYTEPOS (pos)); |