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
This commit is contained in:
Eli Zaretskii 2013-09-23 12:28:57 +03:00
parent f03eddbff6
commit b519df2390
2 changed files with 3 additions and 1 deletions

View file

@ -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.

View file

@ -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;