mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -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)
|
(cl-incf magit-auto-revert-counter)
|
||||||
(when (bound-and-true-p vc-mode)
|
(when (bound-and-true-p vc-mode)
|
||||||
(let ((vc-follow-symlinks t))
|
(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))
|
(when (and (not (get-buffer-process buffer))
|
||||||
(funcall buffer-stale-function t))
|
(funcall buffer-stale-function t))
|
||||||
(revert-buffer t t t))
|
(revert-buffer t t t))
|
||||||
|
Reference in New Issue
Block a user