]> git.eshelyaron.com Git - kubed.git/commitdiff
; (kubed-list-delete-marked): Update original buffer.
authorEshel Yaron <me@eshelyaron.com>
Wed, 14 Aug 2024 16:15:52 +0000 (18:15 +0200)
committerEshel Yaron <me@eshelyaron.com>
Wed, 14 Aug 2024 16:15:52 +0000 (18:15 +0200)
kubed.el

index d8511e78ffe3d82f114c162ade77aabfa0ba1860..9982f93741b7aca32a46199c9027d12375c3cb70 100644 (file)
--- a/kubed.el
+++ b/kubed.el
@@ -741,7 +741,8 @@ regardless of QUIET."
                 (tabulated-list-put-tag
                  (propertize "K" 'help-echo "Deletion in progress")))
               (forward-line)))
-          (let ((errb (generate-new-buffer " *kubed-list-delete-marked-stderr*")))
+          (let ((errb (generate-new-buffer " *kubed-list-delete-marked-stderr*"))
+                (buf (current-buffer)))
             (make-process
              :name "*kubed-list-delete-marked*"
              :stderr errb
@@ -753,7 +754,9 @@ regardless of QUIET."
                           ((string= status "finished\n")
                            (message (format "Deleted %d marked Kubernetes resources."
                                             (length delete-list)))
-                           (kubed-list-update t))
+                           (when (buffer-live-p buf)
+                             (with-current-buffer buf
+                               (kubed-list-update t))))
                           ((string= status "exited abnormally with code 1\n")
                            (with-current-buffer errb
                              (goto-char (point-max))