aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2004-11-16 00:30:13 +0000
committerKenichi Handa2004-11-16 00:30:13 +0000
commitab5b02b01f9ac6f21d5083e950b4032be9b34eb7 (patch)
treec18290482ac95920984b84b272aa247f65497a65 /src
parent8f1657f036c94543db5f8a9f6554c440355d5065 (diff)
downloademacs-ab5b02b01f9ac6f21d5083e950b4032be9b34eb7.tar.gz
emacs-ab5b02b01f9ac6f21d5083e950b4032be9b34eb7.zip
(display_mode_element): Fix previous change (calculate
end position of substring to display correctly).
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/xdisp.c4
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 @@
12004-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
12004-11-16 Kim F. Storm <storm@cua.dk> 62004-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,