From b674856b65a0ebcd5920a3cdc5a17409d3ecda0e Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Wed, 6 Jan 2016 22:40:42 +0300 Subject: [PATCH] diff-hl-flydiff-update: Check whether diff-hl-mode is enabled Closes #60 --- diff-hl-flydiff.el | 1 + 1 file changed, 1 insertion(+) diff --git a/diff-hl-flydiff.el b/diff-hl-flydiff.el index 30a354390..94dbbd7f6 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))) -- 2.39.2