[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 30bd6a5: * lisp/tab-bar.el (tab-bar-format-global): Use string-tr

From: Juri Linkov
Subject: master 30bd6a5: * lisp/tab-bar.el (tab-bar-format-global): Use string-trim-right (bug#30056).
Date: Tue, 27 Jul 2021 16:55:55 -0400 (EDT)

branch: master
commit 30bd6a50aa4cf1cb486b40876fd42bd5da74e77a
Author: Juri Linkov <juri@linkov.net>
Commit: Juri Linkov <juri@linkov.net>

    * lisp/tab-bar.el (tab-bar-format-global): Use string-trim-right 
 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 c63ef20..4d7a079 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))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]