From aa4dfba7fd52e598b29e3a13efe8743837a2e53b Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 29 Oct 2011 12:02:39 +0200 Subject: Revert last commit. --- src/ChangeLog | 5 ----- src/xdisp.c | 16 ++++++++-------- 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 69c202faa4c..5a7d66ceb17 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,8 +1,3 @@ -2011-10-29 Eli Zaretskii - - * xdisp.c (note_mouse_highlight): Don't clear mouse highlight if - hlinfo->mouse_face_window is nil. (Bug#9902) - 2011-10-29 Andreas Schwab * minibuf.c (read_minibuf_noninteractive): Allow reading empty diff --git a/src/xdisp.c b/src/xdisp.c index 3cce8012da0..22f7c2bbd26 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -26835,14 +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 (!NILP (hlinfo->mouse_face_window) - /* If displaying active text in another window, clear that. */ - && (!EQ (window, hlinfo->mouse_face_window) - /* Also clear if we move out of text area in same window. */ - || (!NILP (window) - && part != ON_TEXT - && part != ON_MODE_LINE - && part != ON_HEADER_LINE))) + /* If displaying active text in another window, clear that. */ + if (! EQ (window, 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. */ -- cgit v1.2.1