1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-22 04:21:24 -08:00

(display_mode_element): When computing charpos, depend

on multibyteness of elt, not the text in field.
This commit is contained in:
Eli Zaretskii 2002-01-15 17:30:41 +00:00
parent 0a7d02300d
commit bfdbf2ef9d
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
* xdisp.c (display_mode_element): When computing charpos, depend
on multibyteness of elt, not the text in field.
2002-01-14 Andreas Schwab <schwab@suse.de>
* unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS

View file

@ -13573,7 +13573,7 @@ display_mode_element (it, depth, field_width, precision, elt)
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,