diff options
| author | Kenichi Handa | 2002-04-09 07:42:27 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2002-04-09 07:42:27 +0000 |
| commit | f56ed24b07a8744eaa38c155e4904afcbc156a1b (patch) | |
| tree | 7648398d8a9c66775f5f6fe8d41cd4d32b9d81b1 | |
| parent | 50342b352008fb2695ffbd1ae1f98c26c6937878 (diff) | |
| download | emacs-f56ed24b07a8744eaa38c155e4904afcbc156a1b.tar.gz emacs-f56ed24b07a8744eaa38c155e4904afcbc156a1b.zip | |
(display_mode_element): Fix calculation of `bytepos'.
| -rw-r--r-- | src/xdisp.c | 2 |
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); |