Fix arrayp error when killing Emacs
Caused by doom|cleanup-project-cache, when a non-string key is present in projectile-projects-cache (which will be removed).
This commit is contained in:
parent
9402d07228
commit
8e6953b3ac
1 changed files with 3 additions and 2 deletions
|
@ -58,8 +58,9 @@ c) are not valid projectile projects."
|
|||
(when (bound-and-true-p projectile-projects-cache)
|
||||
(cl-loop with blacklist = (mapcar #'file-truename doom-projectile-cache-blacklist)
|
||||
for proot in (hash-table-keys projectile-projects-cache)
|
||||
for len = (length (gethash proot projectile-projects-cache))
|
||||
if (or (>= len doom-projectile-cache-limit)
|
||||
if (or (not (stringp proot))
|
||||
(>= (length (gethash proot projectile-projects-cache))
|
||||
doom-projectile-cache-limit)
|
||||
(member (substring proot 0 -1) blacklist)
|
||||
(and doom-projectile-cache-purge-non-projects
|
||||
(not (doom-project-p proot))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue