We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4548d29 commit a7b59bcCopy full SHA for a7b59bc
1 file changed
diff-hl.el
@@ -980,8 +980,9 @@ that file, if it's present."
980
(unwind-protect
981
(progn
982
(vc-setup-buffer diff-buffer)
983
- (diff-hl-diff-against-reference file backend diff-buffer)
984
- (set-buffer diff-buffer)
+ (with-current-buffer buffer
+ ;; Ensure that the buffer-local variable value is applied.
985
+ (diff-hl-diff-against-reference file backend diff-buffer))
986
(diff-mode)
987
(setq-local diff-vc-backend backend)
988
(setq-local diff-vc-revisions (list diff-hl-reference-revision nil))
0 commit comments