Skip to content

Commit 830b052

Browse files
committed
diff-hl-diff-goto-hunk-1: Honor the recently added vc-allow-async-diff
1 parent 7a89c85 commit 830b052

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

diff-hl.el

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,11 @@ It can be a relative expression as well, such as \"HEAD^\" with Git, or
589589
(let ((revs (diff-hl-diff-read-revisions rev1)))
590590
(setq rev1 (car revs)
591591
rev2 (cdr revs))))
592-
(vc-diff-internal t (vc-deduce-fileset) rev1 rev2 t)
592+
(vc-diff-internal
593+
(if (boundp 'vc-allow-async-diff)
594+
vc-allow-async-diff
595+
t)
596+
(vc-deduce-fileset) rev1 rev2 t)
593597
(vc-run-delayed (if (< (line-number-at-pos (point-max)) 3)
594598
(with-current-buffer buffer (diff-hl-remove-overlays))
595599
(when (or (not rev2) diff-hl-goto-hunk-old-revisions)

0 commit comments

Comments
 (0)