Fix: incorrect mode-line while global-mode-string is empty.

This commit is contained in:
Vincent Zhang 2018-07-12 00:07:05 +08:00
parent 773382202e
commit a020a1e021

View file

@ -1034,8 +1034,9 @@ enabled."
(doom-modeline-def-segment global
"For the time string and whatever uses global-mode-string."
(when (< 0 (length global-mode-string))
'(" " global-mode-string " ")))
(if (< 0 (length global-mode-string))
'(" " global-mode-string " ")
""))
;;