From a020a1e021ec0a6f55e0b95d62626bd5c55c0366 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Thu, 12 Jul 2018 00:07:05 +0800 Subject: [PATCH] Fix: incorrect mode-line while global-mode-string is empty. --- doom-modeline.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doom-modeline.el b/doom-modeline.el index 1b3fbe7..720ab18 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -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 " ") + "")) ;;