More thorough fix of bug #15913 with mouse-highlight on MS-Windows.

src/xdisp.c (clear_mouse_face): Don't invalidate the entire
 mouse-highlight info, just signal frame_up_to_date_hook that mouse
 highlight needs to be redisplayed.
This commit is contained in:
Eli Zaretskii 2013-11-29 10:53:50 +02:00
parent 49faeaaf89
commit b7f79a5c4f
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2013-11-29 Eli Zaretskii <eliz@gnu.org>
* xdisp.c (clear_mouse_face): Don't invalidate the entire
mouse-highlight info, just signal frame_up_to_date_hook that mouse
highlight needs to be redisplayed. (Bug#15913)
2013-11-29 Paul Eggert <eggert@cs.ucla.edu>
Fix minor problems found by static checking.

View file

@ -26883,7 +26883,10 @@ clear_mouse_face (Mouse_HLInfo *hlinfo)
cleared = 1;
}
reset_mouse_highlight (hlinfo);
hlinfo->mouse_face_beg_row = hlinfo->mouse_face_beg_col = -1;
hlinfo->mouse_face_end_row = hlinfo->mouse_face_end_col = -1;
hlinfo->mouse_face_window = Qnil;
hlinfo->mouse_face_overlay = Qnil;
return cleared;
}