# HG changeset patch # User Kenichi Handa # Date 1100564937 0 # Node ID 2f12a89f27dd902372198f71cb13a08ed90ac025 # Parent fdf2cb9626ab40ee2b0bc12fdb2d435c673b6a62 (display_mode_element): Fix previous change (calculate end position of substring to display correctly). diff -r fdf2cb9626ab -r 2f12a89f27dd src/xdisp.c --- a/src/xdisp.c Mon Nov 15 23:32:52 2004 +0000 +++ b/src/xdisp.c Tue Nov 16 00:28:57 2004 +0000 @@ -15510,7 +15510,9 @@ { 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,