diff options
| author | Chong Yidong | 2007-01-20 21:03:22 +0000 |
|---|---|---|
| committer | Chong Yidong | 2007-01-20 21:03:22 +0000 |
| commit | 49a17db31c6ce952f453a93676aeefcc93677e67 (patch) | |
| tree | b1017321cb0526eae5fa4636126bf9c581ab078f /src | |
| parent | 7d10072747ac1adb84de0eda7654545ec6387735 (diff) | |
| download | emacs-49a17db31c6ce952f453a93676aeefcc93677e67.tar.gz emacs-49a17db31c6ce952f453a93676aeefcc93677e67.zip | |
(try_window): Clear mouse-face highlights first.
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)); |