Commit d3d0842f authored by Chong Yidong's avatar Chong Yidong
Browse files

* src/xdisp.c (note_mouse_highlight): Fix use of uninitialized var.

See:
http://lists.gnu.org/archive/html/emacs-devel/2011-10/msg01202.html
parent 8cedc5ac
2011-10-28 Chong Yidong <cyd@gnu.org>
* xdisp.c (note_mouse_highlight): Fix use of uninitialized var.
2011-10-28 Dan Nicolaescu <dann@ics.uci.edu> 2011-10-28 Dan Nicolaescu <dann@ics.uci.edu>
* window.c (make_window): Initialize phys_cursor_on_p. * window.c (make_window): Initialize phys_cursor_on_p.
......
...@@ -26835,11 +26835,14 @@ note_mouse_highlight (struct frame *f, int x, int y) ...@@ -26835,11 +26835,14 @@ note_mouse_highlight (struct frame *f, int x, int y)
/* Which window is that in? */ /* Which window is that in? */
window = window_from_coordinates (f, x, y, &part, 1); window = window_from_coordinates (f, x, y, &part, 1);
   
/* If we were displaying active text in another window, clear that. /* If displaying active text in another window, clear that. */
Also clear if we move out of text area in same window. */
if (! EQ (window, hlinfo->mouse_face_window) if (! EQ (window, hlinfo->mouse_face_window)
|| (part != ON_TEXT && part != ON_MODE_LINE && part != ON_HEADER_LINE /* Also clear if we move out of text area in same window. */
&& !NILP (hlinfo->mouse_face_window))) || (!NILP (hlinfo->mouse_face_window)
&& !NILP (window)
&& part != ON_TEXT
&& part != ON_MODE_LINE
&& part != ON_HEADER_LINE))
clear_mouse_face (hlinfo); clear_mouse_face (hlinfo);
   
/* Not on a window -> return. */ /* Not on a window -> return. */
......
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