fix: projectile-find-file: stringp error in no-project buffers

A regression introduced by our centralized cache hack in c3a9388.

Amend: c3a9388452
Close: #8330
This commit is contained in:
Henrik Lissner
2025-03-30 15:43:18 -04:00
parent 17a870fef8
commit 64c71949f8

View File

@ -94,11 +94,11 @@ Must end with a slash.")
(setq compilation-buffer-name-function #'projectile-compilation-buffer-name
compilation-save-buffers-predicate #'projectile-current-project-buffer-p)
;; Centralize Projectile's per-project cache files, so they don't litter
;; projects with dotfiles.
;; HACK: Centralize Projectile's per-project cache files, so they don't litter
;; projects with dotfiles.
(defadvice! doom--projectile-centralized-cache-files-a (fn &optional proot)
:around #'projectile-project-cache-file
(let* ((proot (abbreviate-file-name (or proot (doom-project-root))))
(let* ((proot (or proot (doom-project-root) default-directory))
(projectile-cache-file
(expand-file-name
(format "%s-%s" (doom-project-name proot) (sha1 proot))