From 0085d089f3cd89b476e7c8b4d84fbbcb2034341e Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 28 Mar 2019 16:43:04 -0400 Subject: [PATCH] Refactor doom*projectile-locate-dominating-file --- core/core-projects.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/core-projects.el b/core/core-projects.el index d6c0b0bc1..2a083add7 100644 --- a/core/core-projects.el +++ b/core/core-projects.el @@ -53,7 +53,8 @@ ;; TODO Is this still necessary? (defun doom*projectile-locate-dominating-file (orig-fn file name) "Don't traverse the file system if on a remote connection." - (unless (file-remote-p default-directory) + (when (and (stringp file) + (not (file-remote-p file))) (funcall orig-fn file name))) (advice-add #'projectile-locate-dominating-file :around #'doom*projectile-locate-dominating-file)