From: Juri Linkov Date: Tue, 27 Jul 2021 20:55:32 +0000 (+0300) Subject: * lisp/tab-bar.el (tab-bar-format-global): Use string-trim-right (bug#30056). X-Git-Tag: emacs-28.0.90~1675 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=30bd6a50aa4cf1cb486b40876fd42bd5da74e77a;p=emacs.git * lisp/tab-bar.el (tab-bar-format-global): Use string-trim-right (bug#30056). --- 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))