Add {vc,git-gutter}-mode checks to vc refresher
This commit is contained in:
parent
a6cc66e21e
commit
5bcab488a7
1 changed files with 3 additions and 2 deletions
|
@ -50,9 +50,10 @@
|
|||
|
||||
(defun +magit--refresh-vc-in-buffer (buffer)
|
||||
(with-current-buffer buffer
|
||||
(when (fboundp 'vc-refresh-state)
|
||||
(when (and vc-mode (fboundp 'vc-refresh-state))
|
||||
(vc-refresh-state))
|
||||
(when (fboundp '+version-control|update-git-gutter)
|
||||
(when (and (bound-and-true-p git-gutter-mode)
|
||||
(fboundp '+version-control|update-git-gutter))
|
||||
(+version-control|update-git-gutter))
|
||||
(setq +magit--vc-is-stale-p nil)))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue