From 30bd6a50aa4cf1cb486b40876fd42bd5da74e77a Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Tue, 27 Jul 2021 23:55:32 +0300 Subject: [PATCH] * lisp/tab-bar.el (tab-bar-format-global): Use string-trim-right (bug#30056). --- lisp/tab-bar.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/tab-bar.el b/lisp/tab-bar.el index c63ef20abea..4d7a0796e56 100644 --- a/lisp/tab-bar.el +++ b/lisp/tab-bar.el @@ -748,7 +748,7 @@ When `tab-bar-format-global' is added to `tab-bar-format' then modes that display information on the mode line using `global-mode-string' will display the same text on the tab bar instead." - `((global menu-item ,(format-mode-line global-mode-string) ignore))) + `((global menu-item ,(string-trim-right (format-mode-line global-mode-string)) ignore))) (defun tab-bar-format-list (format-list) (let ((i 0)) -- 2.39.2