core-project: fix projectile caching error when buffer-file-name is nil
This commit is contained in:
parent
294f858875
commit
d4c1050e32
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@
|
||||||
(defun doom*projectile-cache-current-file (orig-fun &rest args)
|
(defun doom*projectile-cache-current-file (orig-fun &rest args)
|
||||||
"Don't cache ignored files."
|
"Don't cache ignored files."
|
||||||
(unless (cl-loop for path in (projectile-ignored-directories)
|
(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)
|
return t)
|
||||||
(apply orig-fun args)))
|
(apply orig-fun args)))
|
||||||
(advice-add #'projectile-cache-current-file :around #'doom*projectile-cache-current-file))
|
(advice-add #'projectile-cache-current-file :around #'doom*projectile-cache-current-file))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue