Commit 43264c87 authored by Phil Sainty's avatar Phil Sainty Committed by Jonas Bernoulli

magit-mode: Set the repository-local mode-line-process value

Previously only pre-existing magit buffers for the repository would
indicate the current Git process; new magit buffers created while the
process was still running would not display that information.
parent 2231ba6d
......@@ -566,6 +566,7 @@ Magit is documented in info node `(magit)'."
(add-hook 'deactivate-mark-hook #'magit-section-update-highlight t t)
(setq-local redisplay-highlight-region-function 'magit-highlight-region)
(setq-local redisplay-unhighlight-region-function 'magit-unhighlight-region)
(setq mode-line-process (magit-repository-local-get 'mode-line-process))
(when (bound-and-true-p global-linum-mode)
(linum-mode -1))
(when (and (fboundp 'nlinum-mode)
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