branch: externals/vundo
commit 533eabfaf80e90d6064f1f9151573cefff39bbd1
Author: Campbell Barton <[email protected]>
Commit: Yuan Fu <[email protected]>

    Remove global hook on vundo-diff quit
    
    * vundo-diff.el (vundo-diff--quit): Call remove-hook to remove
    vundo-post-exit-hook when quitting.
---
 vundo-diff.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/vundo-diff.el b/vundo-diff.el
index a134d3451d..a799945f1b 100644
--- a/vundo-diff.el
+++ b/vundo-diff.el
@@ -136,7 +136,8 @@ NODE defaults to the current node."
          (win (and buf (get-buffer-window buf)))
          (kill (eq vundo-diff-quit 'kill)))
     (if win (quit-window kill win)
-      (when (and buf kill) (kill-buffer buf)))))
+      (when (and buf kill) (kill-buffer buf))))
+  (remove-hook 'vundo-post-exit-hook #'vundo-diff--quit))
 
 ;;;###autoload
 (defun vundo-diff ()

Reply via email to