end position of substring to display correctly).
+2004-11-16 Kenichi Handa <handa@m17n.org>
+
+ * xdisp.c (display_mode_element): Fix previous change (calculate
+ end position of substring to display correctly).
+
2004-11-16 Kim F. Storm <storm@cua.dk>
* keyboard.c (Fposn_at_point): Remove extra */ after doc string.
{
int bytepos = last - lisp_string;
int charpos = string_byte_to_char (elt, bytepos);
- int endpos = (precision <= 0 ? SCHARS (elt)
+ int endpos = (precision <= 0
+ ? string_byte_to_char (elt,
+ this - lisp_string)
: charpos + nchars);
n += store_mode_line_string (NULL,