mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Fix doom-project-root returning nil if no project
It should return default-directory. A change upstream broke this.
This commit is contained in:
@ -62,7 +62,10 @@ If NOCACHE, don't fetch a cached answer."
|
||||
(if nocache
|
||||
(without-project-cache! (doom-project-root nil))
|
||||
(let (projectile-require-project-root)
|
||||
(projectile-project-root))))
|
||||
;; NOTE `projectile-project-root' should return default-directory if we're
|
||||
;; not in a project. Seems to be a bug upstream.
|
||||
(or (projectile-project-root)
|
||||
default-directory))))
|
||||
|
||||
;;;###autoload
|
||||
(defalias 'doom-project-expand #'projectile-expand-root)
|
||||
|
Reference in New Issue
Block a user