diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/xdisp.c | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 105d81a6a75..52ec2d23b6f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2004-11-16 Kenichi Handa <handa@m17n.org> | ||
| 2 | |||
| 3 | * xdisp.c (display_mode_element): Fix previous change (calculate | ||
| 4 | end position of substring to display correctly). | ||
| 5 | |||
| 1 | 2004-11-16 Kim F. Storm <storm@cua.dk> | 6 | 2004-11-16 Kim F. Storm <storm@cua.dk> |
| 2 | 7 | ||
| 3 | * keyboard.c (Fposn_at_point): Remove extra */ after doc string. | 8 | * keyboard.c (Fposn_at_point): Remove extra */ after doc string. |
diff --git a/src/xdisp.c b/src/xdisp.c index 6a03d2d6de4..e4e303941ef 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -15510,7 +15510,9 @@ display_mode_element (it, depth, field_width, precision, elt, props, risky) | |||
| 15510 | { | 15510 | { |
| 15511 | int bytepos = last - lisp_string; | 15511 | int bytepos = last - lisp_string; |
| 15512 | int charpos = string_byte_to_char (elt, bytepos); | 15512 | int charpos = string_byte_to_char (elt, bytepos); |
| 15513 | int endpos = (precision <= 0 ? SCHARS (elt) | 15513 | int endpos = (precision <= 0 |
| 15514 | ? string_byte_to_char (elt, | ||
| 15515 | this - lisp_string) | ||
| 15514 | : charpos + nchars); | 15516 | : charpos + nchars); |
| 15515 | 15517 | ||
| 15516 | n += store_mode_line_string (NULL, | 15518 | n += store_mode_line_string (NULL, |