mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -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
|
||||||
|
Reference in New Issue
Block a user