From 1a6ee8e0df2faa617c08ba65f29d5c26edc362f3 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 26 Aug 2018 11:47:04 +0200 Subject: [PATCH] Fix doom-project-find-file if $HOME is a repo #833 If HOME is a repo, projectile resolves all project roots to HOME. This fixes any commands that rely on this project resolution by explicitly telling them what project they're in instead. --- core/autoload/projects.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/autoload/projects.el b/core/autoload/projects.el index 216f7afb9..4d80622f5 100644 --- a/core/autoload/projects.el +++ b/core/autoload/projects.el @@ -73,7 +73,7 @@ If NOCACHE, don't fetch a cached answer." ;;;###autoload (defun doom-project-find-file (dir) "Fuzzy-find a file under DIR." - (let ((default-directory dir)) + (let ((projectile-project-root dir)) (without-project-cache! (call-interactively ;; completion modules may remap this command