]> code.delx.au - gnu-emacs-elpa/commitdiff
diff-hl-flydiff-update: Check whether diff-hl-mode is enabled
authorDmitry Gutov <dgutov@yandex.ru>
Wed, 6 Jan 2016 19:40:42 +0000 (22:40 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Wed, 6 Jan 2016 19:40:42 +0000 (22:40 +0300)
Closes #60

diff-hl-flydiff.el

index 30a354390f8763236839cd1e8869352cd1492ee8..94dbbd7f6d9e89f68536d9a37ccd86884d18e3b3 100644 (file)
@@ -138,6 +138,7 @@ This requires the external program `diff' to be in your `exec-path'."
 
 (defun diff-hl-flydiff-update ()
   (unless (or
+           (not diff-hl-mode)
            (= diff-hl-flydiff-modified-tick (buffer-modified-tick))
            (file-remote-p default-directory))
     (diff-hl-update)))