Commit b519df23 authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

Fix last commit.

 src/xdisp.c (note_mouse_highlight): Adapt calculation of last argument to
 mouse_face_from_string_pos to the previous change.

Fixes: debbugs:15437
parent f03eddbf
......@@ -3,6 +3,8 @@
* xdisp.c (mouse_face_from_string_pos): Fix off-by-one error in
computing the end column of mouse-highlight that comes from
display or overlay strings. (Bug#15437)
(note_mouse_highlight): Adapt calculation of last argument to
mouse_face_from_string_pos to the above change.
* conf_post.h (__has_builtin): Define to zero, if undefined, on
all platforms, not just for clang.
......
......@@ -28267,7 +28267,7 @@ note_mouse_highlight (struct frame *f, int x, int y)
if (NILP (s))
s = make_number (0);
if (NILP (e))
e = make_number (SCHARS (object) - 1);
e = make_number (SCHARS (object));
mouse_face_from_string_pos (w, hlinfo, object,
XINT (s), XINT (e));
hlinfo->mouse_face_past_end = 0;
......
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