Commit c821e811 authored by Jonas Bernoulli's avatar Jonas Bernoulli

magit-process-finish: determine process buffer just once

parent 91b21365
......@@ -703,11 +703,11 @@ tracked in the current repository are reverted if
(goto-char (1+ (line-end-position)))
(delete-char -1)
(setf (magit-section-content section) nil))
(when (and (= arg 0)
(not (--any-p (eq (window-buffer it)
(magit-process-buffer))
(window-list))))
(magit-section-hide section))))))
(let ((buf (magit-process-buffer)))
(when (and (= arg 0)
(not (--any-p (eq (window-buffer it) buf)
(window-list))))
(magit-section-hide section)))))))
(unless (= arg 0)
(let ((msg (or (and (buffer-live-p process-buf)
(with-current-buffer process-buf
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment