Fix breaking commit 1ce2b291

Possible nil being passed into file-local-name was causing stringp
errors all over the place.
This commit is contained in:
Henrik Lissner 2019-03-13 23:59:13 -04:00
parent fa98551d19
commit cd64fb27f8
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -32,9 +32,8 @@
(or doom-modeline-project-root
(setq doom-modeline-project-root
(file-local-name
(if (featurep 'projectile)
(ignore-errors (projectile-project-root))
default-directory)))))
(or (and (featurep 'projectile) (ignore-errors (projectile-project-root)))
default-directory)))))
(advice-add #'doom-modeline-project-root :override #'+modeline*project-root)
;; Magit -- modeline only where it's useful