branch: scratch/add-vdiff
commit 615e7bdc86c07718beca4cbd5b947633ab10a69d
Author: Justin Burkett <[email protected]>
Commit: Justin Burkett <[email protected]>
vdiff-magit: Fix killing of buffers in stage
---
vdiff-magit.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/vdiff-magit.el b/vdiff-magit.el
index b1ad04f..b21f13a 100644
--- a/vdiff-magit.el
+++ b/vdiff-magit.el
@@ -239,9 +239,11 @@ FILE has to be relative to the top directory of the
repository."
(with-current-buffer buf-c
(when (y-or-n-p
(format "Save file %s? " buffer-file-name))
- (save-buffer)))
+ (save-buffer))))
+ (when (y-or-n-p
+ (format "Kill buffer %s?" (buffer-file-name buf-c)))
(kill-buffer buf-c)))
- t t))))
+ t nil))))
;; ;;;###autoload
(defun vdiff-magit-compare (revA revB fileA fileB)