branch: elpa/helm
commit 25461b0463845efa7f0eb710879f26543c4a4dae
Author: Thierry Volpiatto <thie...@posteo.net>
Commit: Thierry Volpiatto <thie...@posteo.net>

    Remove thumbnailed directories from cache when cleaning
---
 helm-files.el | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/helm-files.el b/helm-files.el
index 41f9761617..809844d213 100644
--- a/helm-files.el
+++ b/helm-files.el
@@ -5442,6 +5442,10 @@ source is `helm-source-find-files'."
           helm-ff-update-when-only-one-matched
           helm-ff-move-to-first-real-candidate
           helm-ff-clean-initial-input))
+  (maphash (lambda (k _v)
+             (when (member k helm-ff--thumbnailed-directories)
+               (remhash k helm-ff--list-directory-cache)))
+           helm-ff--list-directory-cache)
   (setq helm-ff--show-directories-only nil
         helm-ff--show-files-only nil
         helm-ff--show-thumbnails nil

Reply via email to