From 65f21729e60f831026ce134b87561c5119b6a926 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Mon, 4 Jan 2021 10:48:08 +0100 Subject: [PATCH] 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 43447e2bf7e..6a4304d194b 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)); } -- 2.39.5