branch: master
commit bf27c418695214a77cc369b8069f8b9c27d0eb1f
Author: Dmitry Gutov <[email protected]>
Commit: Dmitry Gutov <[email protected]>
vc-disable-async-diff: Don't bind when it's undefined
Fixes #47
---
diff-hl.el | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/diff-hl.el b/diff-hl.el
index 5b6510d..8f2221a 100644
--- a/diff-hl.el
+++ b/diff-hl.el
@@ -213,7 +213,8 @@
(vc-hg-diff-switches nil)
(vc-svn-diff-switches nil)
(vc-diff-switches '("-U0"))
- (vc-disable-async-diff t))
+ ,@(when (boundp 'vc-disable-async-diff)
+ '((vc-disable-async-diff t))))
,body))
(defun diff-hl-changes ()