From f56ed24b07a8744eaa38c155e4904afcbc156a1b Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Tue, 9 Apr 2002 07:42:27 +0000 Subject: [PATCH] (display_mode_element): Fix calculation of `bytepos'. --- src/xdisp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xdisp.c b/src/xdisp.c index 43a831b77f9..f3ac113de4f 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -13694,7 +13694,7 @@ display_mode_element (it, depth, field_width, precision, elt, props) int nglyphs_before, bytepos, charpos, nwritten; nglyphs_before = it->glyph_row->used[TEXT_AREA]; - bytepos = percent_position - XSTRING (elt)->data; + bytepos = percent_position - lisp_string; charpos = (STRING_MULTIBYTE (elt) ? string_byte_to_char (elt, bytepos) : bytepos); -- 2.39.5