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

    Update dired-buffers when operation ends (#99)
    
    * dired-async.el (dired-async-after-file-create): Do it.
---
 dired-async.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dired-async.el b/dired-async.el
index c798947..fbab33c 100644
--- a/dired-async.el
+++ b/dired-async.el
@@ -159,6 +159,9 @@ Should take same args as `message'."
                            'dired-async-failures
                            (car operation) (length skipped) total
                            (dired-plural-s total))))
+           (when dired-buffers
+             (cl-loop for (_f . b) in dired-buffers
+                      do (with-current-buffer b (revert-buffer nil t))))
            ;; Finally send the success message.
            (funcall dired-async-message-function
                     "Asynchronous %s of %s on %s file%s done"

Reply via email to