branch: master commit b674856b65a0ebcd5920a3cdc5a17409d3ecda0e Author: Dmitry Gutov <dgu...@yandex.ru> Commit: Dmitry Gutov <dgu...@yandex.ru>
diff-hl-flydiff-update: Check whether diff-hl-mode is enabled Closes #60 --- diff-hl-flydiff.el | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/diff-hl-flydiff.el b/diff-hl-flydiff.el index 30a3543..94dbbd7 100644 --- a/diff-hl-flydiff.el +++ b/diff-hl-flydiff.el @@ -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)))