Commit 985bd218 authored by Jonas Bernoulli's avatar Jonas Bernoulli

magit-process-sentinel: refresh even if buffer is no longer alive

Call `magit-refresh' even if the buffer that was current when the buffer
was started is no longer alive.  This ensures that the status buffer is
refreshed.
parent 14a4ef60
......@@ -534,14 +534,16 @@ tracked in the current repository are reverted if
(magit-process-finish process)
(when (eq process magit-this-process)
(setq magit-this-process nil))
(--when-let (and (not (process-get process 'inhibit-refresh))
(process-get process 'command-buf))
(when (buffer-live-p it)
(with-current-buffer it
(let ((inhibit-magit-revert (process-get process 'inhibit-revert)))
(unless (process-get process 'inhibit-refresh)
(let ((inhibit-magit-revert (process-get process 'inhibit-revert))
(command-buf (process-get process 'command-buf)))
(if (buffer-live-p command-buf)
(with-current-buffer command-buf
(magit-refresh))
(with-temp-buffer
(setq default-directory (process-get process 'default-dir))
(magit-refresh))))))))
(defun magit-sequencer-process-sentinel (process event)
"Special sentinel used by `magit-run-git-sequencer'."
(when (memq (process-status process) '(exit signal))
......
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