aboutsummaryrefslogtreecommitdiffstats
path: root/src/xdisp.c
diff options
context:
space:
mode:
authorEli Zaretskii <[email protected]>2002-01-15 17:22:17 +0000
committerEli Zaretskii <[email protected]>2002-01-15 17:22:17 +0000
commit26f622b36b227a5a3932045097a5f7a290859af2 (patch)
tree5e0bec9cc1c3119cf6375f777de0c18ff99e324a /src/xdisp.c
parent1a6db83a4890157c047c599809e75dd28cf8947e (diff)
(display_mode_element): When computing charpos, depend
on multibyteness of elt, not the text in field.
Diffstat (limited to 'src/xdisp.c')
-rw-r--r--src/xdisp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index d7491121ee..694935c9c0 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,