* lisp/tab-bar.el (tab-bar-format-global): Use string-trim-right (bug#30056).

This commit is contained in:
Juri Linkov 2021-07-27 23:55:32 +03:00
parent b4173443fb
commit 30bd6a50aa

View file

@ -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))