Fix #10: file-name not working if buffer unmodified.

This commit is contained in:
Vincent Zhang 2018-07-11 14:41:19 +08:00
parent fefc9d9cfb
commit 593f581952

View file

@ -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)))