From: Kenichi Handa Date: Tue, 9 Apr 2002 07:42:27 +0000 (+0000) Subject: (display_mode_element): Fix calculation of `bytepos'. X-Git-Tag: emacs-pretest-23.0.90~8295^2~1864^2~936 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f56ed24b07a8744eaa38c155e4904afcbc156a1b;p=emacs.git (display_mode_element): Fix calculation of `bytepos'. --- 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);