aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);