branch: externals/disk-usage
commit 4fc5cb398980bfb83318db67ddaaeb2e5ccf9864
Author: Pierre Neidhardt <[email protected]>
Commit: Pierre Neidhardt <[email protected]>

    Refresh cache with prefix argument
---
 disk-usage.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/disk-usage.el b/disk-usage.el
index fd47f14..76bb479 100644
--- a/disk-usage.el
+++ b/disk-usage.el
@@ -171,7 +171,8 @@ It takes the directory to scan as argument."
            sum (disk-usage--file-info-size file)))
 
 (defun disk-usage--directory-size (path)
-  (let ((size (gethash path disk-usage--cache)))
+  (let ((size (unless current-prefix-arg
+                (gethash path disk-usage--cache))))
     (unless size
       (message "Computing disk usage for %S..." path)
       (setq size (funcall disk-usage--directory-size-function path))

Reply via email to