branch: externals/async
commit 31cb2fea8f4bc7a593acd76187a89075d8075500
Author: Thierry Volpiatto <[email protected]>
Commit: Thierry Volpiatto <[email protected]>

    Don't calculate file size unneedlessly when
    
    dired-async-large-file-warning-threshold is nil.
---
 dired-async.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dired-async.el b/dired-async.el
index 94294305ec..b044bd1246 100644
--- a/dired-async.el
+++ b/dired-async.el
@@ -323,6 +323,7 @@ ESC or `q' to not overwrite any of the remaining files,
                           from to)))
             ;; Skip file if it is too large.
             (if (and (member operation '("Copy" "Rename"))
+                     dired-async-large-file-warning-threshold
                      (eq (dired-async--abort-if-file-too-large
                           (file-attribute-size
                            (file-attributes (file-truename from)))

Reply via email to