[Compatibility] % symbol not displayed in minor mode lighters.

This commit is contained in:
Vincent Zhang 2019-02-26 01:45:11 +07:00
parent 40564fc281
commit 27b22faf56

View file

@ -444,7 +444,12 @@ mouse-1: Display minor modes menu"
'mouse-1 #'minions-minor-modes-menu))
" ")
(propertize
(concat (format-mode-line '("" minor-mode-alist)) " ")
(concat
(replace-regexp-in-string (regexp-quote "%")
"%%%%"
(format-mode-line '("" minor-mode-alist))
t t)
" ")
'face (if active
'doom-modeline-buffer-minor-mode
'mode-line-inactive))))))