Mercurial > emacs
changeset 42764:d4c2d33bc4f8
(display_mode_element): When computing charpos, depend
on multibyteness of elt, not the text in field.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Tue, 15 Jan 2002 17:21:28 +0000 |
parents | 824e20bc64f0 |
children | fc971258e444 |
files | src/xdisp.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xdisp.c Tue Jan 15 07:31:04 2002 +0000 +++ b/src/xdisp.c Tue Jan 15 17:21:28 2002 +0000 @@ -13607,7 +13607,7 @@ nglyphs_before = it->glyph_row->used[TEXT_AREA]; bytepos = percent_position - XSTRING (elt)->data; - charpos = (multibyte + charpos = (STRING_MULTIBYTE (elt) ? string_byte_to_char (elt, bytepos) : bytepos); nwritten = display_string (spec, Qnil, elt,