mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -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))
|
||||
|
Reference in New Issue
Block a user