diff --git a/core/autoload/projects.el b/core/autoload/projects.el index 820607018..13fc0d7a0 100644 --- a/core/autoload/projects.el +++ b/core/autoload/projects.el @@ -98,8 +98,8 @@ If DIR is not a project, it will be indexed (but not cached)." (error "Directory %S does not exist" dir)) (unless (file-readable-p dir) (error "Directory %S isn't readable" dir)) - (let* ((default-directory (file-truename (expand-file-name dir))) - (projectile-project-root (doom-project-root default-directory)) + (let* ((default-directory (file-truename dir)) + (projectile-project-root (doom-project-root dir)) (projectile-enable-caching projectile-enable-caching)) (cond ((and projectile-project-root (file-equal-p projectile-project-root default-directory)) (unless (doom-project-p default-directory) @@ -116,8 +116,8 @@ If DIR is not a project, it will be indexed (but not cached)." #'projectile-find-file))) ((fboundp 'counsel-file-jump) ; ivy only (call-interactively #'counsel-file-jump)) - ((project-current) - (project-find-file-in nil (list default-directory) nil)) + ((project-current nil dir) + (project-find-file-in nil nil dir)) ((fboundp 'helm-find-files) (call-interactively #'helm-find-files)) ((call-interactively #'find-file)))))