From 51ca9570a6f6ce6a8864beb355cdf2aa271a63a5 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Tue, 20 Nov 2018 22:28:28 +0800 Subject: [PATCH] Fix incorrect colors of slash. --- doom-modeline.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/doom-modeline.el b/doom-modeline.el index c2651e2..46b2c2e 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -559,11 +559,13 @@ Example: (let ((project-props `(,@(if project-faces `(:inherit ,project-faces)) ,@(if active '(:weight bold)))) (relative-props `(,@(if relative-faces `(:inherit ,relative-faces)))) (file-props `(,@(if file-faces `(:inherit ,file-faces))))) - (concat (propertize (file-name-nondirectory (directory-file-name project-root)) + (concat (propertize (concat + (file-name-nondirectory (directory-file-name project-root)) + "/") 'face project-props) (propertize (if (string-equal relative-path "./") - "/" - (shrink-path--dirs-internal relative-path t)) + "" + (substring (shrink-path--dirs-internal relative-path t) 1)) 'face relative-props) (propertize (file-name-nondirectory file-path) 'face file-props)))))))