diff options
| author | Eli Zaretskii | 2002-01-15 17:22:17 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2002-01-15 17:22:17 +0000 |
| commit | 26f622b36b227a5a3932045097a5f7a290859af2 (patch) | |
| tree | 5e0bec9cc1c3119cf6375f777de0c18ff99e324a /src | |
| parent | 1a6db83a4890157c047c599809e75dd28cf8947e (diff) | |
| download | emacs-26f622b36b227a5a3932045097a5f7a290859af2.tar.gz emacs-26f622b36b227a5a3932045097a5f7a290859af2.zip | |
(display_mode_element): When computing charpos, depend
on multibyteness of elt, not the text in field.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/xdisp.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 26c78865695..98a6c7184bf 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il> | ||
| 2 | |||
| 3 | * xdisp.c (display_mode_element): When computing charpos, depend | ||
| 4 | on multibytenes of elt, not the text in field. | ||
| 5 | |||
| 1 | 2002-01-15 Pavel Jan,Bm(Bk <Pavel@Janik.cz> | 6 | 2002-01-15 Pavel Jan,Bm(Bk <Pavel@Janik.cz> |
| 2 | 7 | ||
| 3 | * buffer.c (Fkill_all_local_variables): Increment | 8 | * buffer.c (Fkill_all_local_variables): Increment |
diff --git a/src/xdisp.c b/src/xdisp.c index d7491121ee0..694935c9c02 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -13607,7 +13607,7 @@ display_mode_element (it, depth, field_width, precision, elt) | |||
| 13607 | 13607 | ||
| 13608 | nglyphs_before = it->glyph_row->used[TEXT_AREA]; | 13608 | nglyphs_before = it->glyph_row->used[TEXT_AREA]; |
| 13609 | bytepos = percent_position - XSTRING (elt)->data; | 13609 | bytepos = percent_position - XSTRING (elt)->data; |
| 13610 | charpos = (multibyte | 13610 | charpos = (STRING_MULTIBYTE (elt) |
| 13611 | ? string_byte_to_char (elt, bytepos) | 13611 | ? string_byte_to_char (elt, bytepos) |
| 13612 | : bytepos); | 13612 | : bytepos); |
| 13613 | nwritten = display_string (spec, Qnil, elt, | 13613 | nwritten = display_string (spec, Qnil, elt, |