From ea9c02134ce49b4f54deb118008c841b81866569 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Sun, 19 May 2019 23:04:34 +0800 Subject: [PATCH] Remove unused spaces while lsp is not enabled. --- doom-modeline-segments.el | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index d1892db..3ba0a67 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -1719,16 +1719,16 @@ mouse-3: Reconnect to server" nick (eglot--major-mode server))) doom-modeline--lsp) ((bound-and-true-p eglot--managed-mode) doom-modeline--eglot)))) - (concat - (doom-modeline-whitespace) - (when icon + (when icon + (concat + (doom-modeline-whitespace) (if active icon (propertize icon 'face `(:inherit ,(get-text-property 0 'face icon) :inherit - mode-line-inactive)))) - (doom-modeline-whitespace))))) + mode-line-inactive))) + (doom-modeline-whitespace)))))) (defun doom-modeline-override-eglot-modeline () "Override `eglot' mode-line."