mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
fix: args-out-of-range when cleaning project cache
Caused when the key of a cached project is an empty string. Fix #5345
This commit is contained in:
@ -126,6 +126,7 @@ c) are not valid projectile projects."
|
|||||||
(cl-loop with blacklist = (mapcar #'file-truename doom-projectile-cache-blacklist)
|
(cl-loop with blacklist = (mapcar #'file-truename doom-projectile-cache-blacklist)
|
||||||
for proot in (hash-table-keys projectile-projects-cache)
|
for proot in (hash-table-keys projectile-projects-cache)
|
||||||
if (or (not (stringp proot))
|
if (or (not (stringp proot))
|
||||||
|
(string-empty-p proot)
|
||||||
(>= (length (gethash proot projectile-projects-cache))
|
(>= (length (gethash proot projectile-projects-cache))
|
||||||
doom-projectile-cache-limit)
|
doom-projectile-cache-limit)
|
||||||
(member (substring proot 0 -1) blacklist)
|
(member (substring proot 0 -1) blacklist)
|
||||||
|
Reference in New Issue
Block a user