diff options
author | Eli Zaretskii <eliz@gnu.org> | 2002-01-15 17:22:17 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2002-01-15 17:22:17 +0000 |
commit | 26f622b36b227a5a3932045097a5f7a290859af2 (patch) | |
tree | 5e0bec9cc1c3119cf6375f777de0c18ff99e324a | |
parent | 1a6db83a4890157c047c599809e75dd28cf8947e (diff) | |
download | emacs-26f622b36b227a5a3932045097a5f7a290859af2.tar.gz emacs-26f622b36b227a5a3932045097a5f7a290859af2.tar.bz2 emacs-26f622b36b227a5a3932045097a5f7a290859af2.zip |
(display_mode_element): When computing charpos, depend
on multibyteness of elt, not the text in field.
-rw-r--r-- | src/ChangeLog | 5 | ||||
-rw-r--r-- | src/xdisp.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 26c78865695..98a6c7184bf 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2002-01-15 Eli Zaretskii <eliz@is.elta.co.il> + + * xdisp.c (display_mode_element): When computing charpos, depend + on multibytenes of elt, not the text in field. + 2002-01-15 Pavel Jan,Bm(Bk <Pavel@Janik.cz> * buffer.c (Fkill_all_local_variables): Increment diff --git a/src/xdisp.c b/src/xdisp.c index d7491121ee0..694935c9c02 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -13607,7 +13607,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, |