fix(magit): update diff-hl on revert

Not a complete fix, because +vc-gutter-update-h isn't aggressive or
responsive enough to changes in VC in buffers that haven't changed, but
I'll address that later.
This commit is contained in:
Henrik Lissner
2025-05-15 19:02:27 +02:00
parent 621ea4d56c
commit 78f55f3a45

View File

@ -117,7 +117,9 @@ window that already exists in that direction. It will split otherwise."
(cl-incf magit-auto-revert-counter)
(when (bound-and-true-p vc-mode)
(let ((vc-follow-symlinks t))
(vc-refresh-state)))
(vc-refresh-state))
(when (fboundp '+vc-gutter-update-h)
(+vc-gutter-update-h)))
(when (and (not (get-buffer-process buffer))
(funcall buffer-stale-function t))
(revert-buffer t t t))