Fix doom-project-root returning nil if no project

It should return default-directory. A change upstream broke this.
This commit is contained in:
Henrik Lissner 2018-09-22 11:54:08 -04:00
parent 7acece3e0b
commit ac63596be8
3 changed files with 6 additions and 3 deletions

View file

@ -299,7 +299,7 @@ Otherwise, falls back on `find-file-at-point'."
(let ((file (projectile-completing-read "Find file: "
(projectile-current-project-files)
:initial-input path)))
(find-file (expand-file-name file (projectile-project-root)))
(find-file (expand-file-name file (doom-project-root)))
(run-hooks 'projectile-find-file-hook))))))
(#'doom-project-browse))))
(find-file-at-point path))))))