From 9d374b3bfb5c0a284076c9409c102932b67a007a Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 5 Dec 2018 14:16:42 -0500 Subject: [PATCH] Fix "not in project" projectile error #1037 helm-projectile-find-file doesn't respect projectile-require-project-root by hard-coding it's no-project error handling into its helm-projectile-* functions. This means if you try to use helm-projectile-find-file in a non-project you get this error. So we use helm-find-files for non-projects instead. --- modules/completion/helm/autoload/helm.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/completion/helm/autoload/helm.el b/modules/completion/helm/autoload/helm.el index 393459dc4..44c92f4ee 100644 --- a/modules/completion/helm/autoload/helm.el +++ b/modules/completion/helm/autoload/helm.el @@ -13,8 +13,9 @@ (interactive) (call-interactively (if (or (file-equal-p default-directory "~") - (when-let* ((proot (doom-project-root))) - (file-equal-p proot "~"))) + (if-let* ((proot (doom-project-root))) + (file-equal-p proot "~") + t)) #'helm-find-files #'helm-projectile-find-file)))