Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
d12815f8
Commit
d12815f8
authored
Jan 09, 2012
by
Chong Yidong
Browse files
Fix use of uninitialized var (backport from trunk).
* xdisp.c (note_mouse_highlight): Fix use of uninitialized var.
parent
0c5b9eef
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
src/ChangeLog
src/ChangeLog
+4
-0
src/xdisp.c
src/xdisp.c
+8
-5
No files found.
src/ChangeLog
View file @
d12815f8
2012-01-09 Chong Yidong <cyd@gnu.org>
* xdisp.c (note_mouse_highlight): Fix use of uninitialized var.
2012-01-09 Eli Zaretskii <eliz@gnu.org>
* xdisp.c (note_mouse_highlight): Initialize `part', to avoid a
...
...
src/xdisp.c
View file @
d12815f8
...
...
@@ -23518,11 +23518,14 @@ note_mouse_highlight (f, x, y)
/* Which window is that in? */
window = window_from_coordinates (f, x, y, &part, 0, 0, 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 (! EQ (window, dpyinfo->mouse_face_window)
|| (part != ON_TEXT && part != ON_MODE_LINE && part != ON_HEADER_LINE
&& !NILP (dpyinfo->mouse_face_window)))
/* 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 (dpyinfo);
/* Not on a window -> return. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment