branch: elpa/magit
commit a1258ac487e0e77b28660effe56a5ae92a673709
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>
magit-bury-or-kill-buffer: Bugfix
---
lisp/magit-files.el | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/lisp/magit-files.el b/lisp/magit-files.el
index 60076af08a7..0ee5888f3ad 100644
--- a/lisp/magit-files.el
+++ b/lisp/magit-files.el
@@ -374,10 +374,9 @@ Currently this only adds the following key bindings.
With a prefix argument only bury the buffer even if it is only displayed
in a single window."
(interactive "P")
- (if (and (cdr (get-buffer-window-list nil nil t))
- (not bury-buffer))
- (kill-buffer)
- (bury-buffer)))
+ (if (or bury-buffer (cdr (get-buffer-window-list nil nil t)))
+ (bury-buffer)
+ (kill-buffer)))
(defun magit-kill-this-buffer ()
"Kill the current buffer."