changeset 88446:25703715d32e

(display_mode_element): Fix calculation of `bytepos'.
author Kenichi Handa <handa@m17n.org>
date Tue, 09 Apr 2002 07:42:27 +0000
parents 51e9e2d876e1
children c9c8fd3a8523
files src/xdisp.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Tue Apr 09 07:42:06 2002 +0000
+++ b/src/xdisp.c	Tue Apr 09 07:42:27 2002 +0000
@@ -13694,7 +13694,7 @@
 			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);