From d4c1050e32f422cc5f12b25482f2fa201e8a7f5e Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 28 Jan 2018 04:31:14 -0500 Subject: [PATCH] core-project: fix projectile caching error when buffer-file-name is nil --- core/core-projects.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core-projects.el b/core/core-projects.el index 24db2ee04..013064874 100644 --- a/core/core-projects.el +++ b/core/core-projects.el @@ -40,7 +40,7 @@ (defun doom*projectile-cache-current-file (orig-fun &rest args) "Don't cache ignored files." (unless (cl-loop for path in (projectile-ignored-directories) - if (string-prefix-p buffer-file-name (expand-file-name path)) + if (string-prefix-p (or buffer-file-name "") (expand-file-name path)) return t) (apply orig-fun args))) (advice-add #'projectile-cache-current-file :around #'doom*projectile-cache-current-file))