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:
parent
fa98551d19
commit
cd64fb27f8
1 changed files with 2 additions and 3 deletions
|
@ -32,9 +32,8 @@
|
||||||
(or doom-modeline-project-root
|
(or doom-modeline-project-root
|
||||||
(setq doom-modeline-project-root
|
(setq doom-modeline-project-root
|
||||||
(file-local-name
|
(file-local-name
|
||||||
(if (featurep 'projectile)
|
(or (and (featurep 'projectile) (ignore-errors (projectile-project-root)))
|
||||||
(ignore-errors (projectile-project-root))
|
default-directory)))))
|
||||||
default-directory)))))
|
|
||||||
(advice-add #'doom-modeline-project-root :override #'+modeline*project-root)
|
(advice-add #'doom-modeline-project-root :override #'+modeline*project-root)
|
||||||
|
|
||||||
;; Magit -- modeline only where it's useful
|
;; Magit -- modeline only where it's useful
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue