[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 65f2172: Fix off-by-one error in mode-line-compact code
From: |
Lars Ingebrigtsen |
Subject: |
master 65f2172: Fix off-by-one error in mode-line-compact code |
Date: |
Mon, 4 Jan 2021 04:48:53 -0500 (EST) |
branch: master
commit 65f21729e60f831026ce134b87561c5119b6a926
Author: Amin Bandali <bandali@gnu.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
Fix off-by-one error in mode-line-compact code
* src/xdisp.c (display_mode_line): Fix off-by-one error that would
chop off the final non-space character when compacting (bug#45646).
---
src/xdisp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/xdisp.c b/src/xdisp.c
index 43447e2..6a4304d 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -25504,7 +25504,7 @@ display_mode_line (struct window *w, enum face_id
face_id, Lisp_Object format)
if (start < i)
display_string (NULL,
Fsubstring (mode_string, make_fixnum (start),
- make_fixnum (i - 1)),
+ make_fixnum (i)),
Qnil, 0, 0, &it, 0, 0, 0,
STRING_MULTIBYTE (mode_string));
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 65f2172: Fix off-by-one error in mode-line-compact code,
Lars Ingebrigtsen <=