]> git.eshelyaron.com Git - emacs.git/commitdiff
(display_mode_element): Fix calculation of `bytepos'.
authorKenichi Handa <handa@m17n.org>
Tue, 9 Apr 2002 07:42:27 +0000 (07:42 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 9 Apr 2002 07:42:27 +0000 (07:42 +0000)
src/xdisp.c

index 43a831b77f92c658db521f163e0ebf0d82ee5372..f3ac113de4f7250224c46d4836c9a2752e59b267 100644 (file)
@@ -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);