From 593f5819528f4ab227a15d9a99ad1daf8196704b Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Wed, 11 Jul 2018 14:41:19 +0800 Subject: [PATCH] Fix #10: file-name not working if buffer unmodified. --- doom-modeline.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doom-modeline.el b/doom-modeline.el index 3898e51..6e989dc 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -521,7 +521,7 @@ If STRICT-P, return nil if no project was found, otherwise return 'face (let ((face (or (and (buffer-modified-p) 'doom-modeline-buffer-modified) - (and (active) + (and (doom-modeline--active) 'doom-modeline-buffer-file)))) (when face `(:inherit ,face)))))) 'help-echo buffer-file-truename)))