From 25461b0463845efa7f0eb710879f26543c4a4dae Mon Sep 17 00:00:00 2001 From: Thierry Volpiatto Date: Fri, 7 Jul 2023 08:25:40 +0200 Subject: [PATCH] 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 41f976161..809844d21 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