]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/xdisp.c (note_mouse_highlight): Fix use of uninitialized var.
authorChong Yidong <cyd@gnu.org>
Fri, 28 Oct 2011 15:17:09 +0000 (23:17 +0800)
committerChong Yidong <cyd@gnu.org>
Fri, 28 Oct 2011 15:17:09 +0000 (23:17 +0800)
See:
http://lists.gnu.org/archive/html/emacs-devel/2011-10/msg01202.html

src/ChangeLog
src/xdisp.c

index 21ec98fa217d6f15fb6e9d18fb5130e95d862087..da0ba4b11f2ea9e1288f3e23b748d6286bf17405 100644 (file)
@@ -1,3 +1,7 @@
+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>
 
        * window.c (make_window): Initialize phys_cursor_on_p.
index 0757feed1d954b6cc1dcd45c7cc0bbc2ff822ff8..296b2d132192c635eb1f0a66814f302ab640a88c 100644 (file)
@@ -26835,11 +26835,14 @@ note_mouse_highlight (struct frame *f, int x, int y)
   /* Which window is that in?  */
   window = window_from_coordinates (f, x, y, &part, 1);
 
-  /* If we were displaying active text in another window, clear that.
-     Also clear if we move out of text area in same window.  */
+  /* If displaying active text in another window, clear that.  */
   if (! EQ (window, hlinfo->mouse_face_window)
-      || (part != ON_TEXT && part != ON_MODE_LINE && part != ON_HEADER_LINE
-         && !NILP (hlinfo->mouse_face_window)))
+      /* Also clear if we move out of text area in same window.  */
+      || (!NILP (hlinfo->mouse_face_window)
+         && !NILP (window)
+         && part != ON_TEXT
+         && part != ON_MODE_LINE
+         && part != ON_HEADER_LINE))
     clear_mouse_face (hlinfo);
 
   /* Not on a window -> return.  */