Fix an issue that may cause rhs disappeared

If the first element of a list is a symbol, the list will be a
conditional depending on the value of that symbol.
This commit is contained in:
Pengji Zhang 2018-10-19 17:33:18 -04:00
parent 1fd66c449c
commit 7e6b895206

View file

@ -276,7 +276,7 @@ active.")
(rhs-forms (doom-modeline--prepare-segments rhs))) (rhs-forms (doom-modeline--prepare-segments rhs)))
(defalias sym (defalias sym
(lambda () (lambda ()
(let ((rhs-str (format-mode-line rhs-forms))) (let ((rhs-str (format-mode-line (cons "" rhs-forms))))
(list lhs-forms (list lhs-forms
(propertize (propertize
" " 'display " " 'display