[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] scratch/add-vdiff d33845c 167/258: Minor change in cleanup

From: Justin Burkett
Subject: [elpa] scratch/add-vdiff d33845c 167/258: Minor change in cleanup
Date: Wed, 17 May 2017 08:13:44 -0400 (EDT)

branch: scratch/add-vdiff
commit d33845c8c0506eea1b358aeb5f9b4ef145a8a70c
Author: justbur <address@hidden>
Commit: justbur <address@hidden>

    Minor change in cleanup
 vdiff.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/vdiff.el b/vdiff.el
index f054b17..e3116e4 100644
--- a/vdiff.el
+++ b/vdiff.el
@@ -1608,10 +1608,10 @@ asked to select two buffers."
   (setq vdiff--buffers nil)
   (setq vdiff--line-maps nil)
   (setq vdiff--window-configuration nil)
-  (when (process-live-p vdiff--process-buffer)
-    (kill-process vdiff--process-buffer))
-  (when (buffer-live-p vdiff--process-buffer)
-    (kill-buffer vdiff--process-buffer)))
+  (dolist (buf (list vdiff--process-buffer vdiff--word-diff-output-buffer))
+    (when (process-live-p (get-buffer-process buf))
+      (kill-process (get-buffer-process buf)))
+    (when (buffer-live-p buf) (kill-buffer buf))))
 (define-minor-mode vdiff-mode
   "Minor mode active in a vdiff session involving two

reply via email to

[Prev in Thread] Current Thread [Next in Thread]