branch: elpa/dirvish
commit 9d1bd249a69f596fbc472eb50188d1d6a8b341ce
Author: Alex Lu <hellosimon1...@hotmail.com>
Commit: Alex Lu <hellosimon1...@hotmail.com>

    fix(yank): remove killed buffers from logs
---
 extensions/dirvish-yank.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/extensions/dirvish-yank.el b/extensions/dirvish-yank.el
index 932d19b6bc..d1c22ae08c 100644
--- a/extensions/dirvish-yank.el
+++ b/extensions/dirvish-yank.el
@@ -518,6 +518,9 @@ Returns list that contains (host user port localname)."
 
 (dirvish-define-mode-line yank
   "Progress of yank tasks."
+  (setq dirvish-yank-log-buffers
+        (cl-remove-if-not ; user may kill yank buffers
+         (lambda (buf) (buffer-live-p buf)) dirvish-yank-log-buffers))
   (let ((number-of-tasks (length dirvish-yank-log-buffers)))
     (cond ((= number-of-tasks 0))
           ((= number-of-tasks 1)

Reply via email to