aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2002-04-09 07:42:27 +0000
committerKenichi Handa2002-04-09 07:42:27 +0000
commitf56ed24b07a8744eaa38c155e4904afcbc156a1b (patch)
tree7648398d8a9c66775f5f6fe8d41cd4d32b9d81b1
parent50342b352008fb2695ffbd1ae1f98c26c6937878 (diff)
downloademacs-f56ed24b07a8744eaa38c155e4904afcbc156a1b.tar.gz
emacs-f56ed24b07a8744eaa38c155e4904afcbc156a1b.zip
(display_mode_element): Fix calculation of `bytepos'.
-rw-r--r--src/xdisp.c2
1 files changed, 1 insertions, 1 deletions
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)
13694 int nglyphs_before, bytepos, charpos, nwritten; 13694 int nglyphs_before, bytepos, charpos, nwritten;
13695 13695
13696 nglyphs_before = it->glyph_row->used[TEXT_AREA]; 13696 nglyphs_before = it->glyph_row->used[TEXT_AREA];
13697 bytepos = percent_position - XSTRING (elt)->data; 13697 bytepos = percent_position - lisp_string;
13698 charpos = (STRING_MULTIBYTE (elt) 13698 charpos = (STRING_MULTIBYTE (elt)
13699 ? string_byte_to_char (elt, bytepos) 13699 ? string_byte_to_char (elt, bytepos)
13700 : bytepos); 13700 : bytepos);