Skip to content

Commit 759e7f1

Browse files
committed
diff-hl-flydiff-update: Update diff-hl-flydiff-modified-tick here
To account for the case when the condition in it succeeds, but the buffer is up-to-date and thus not ...-modifier-p, so diff-hl-changes-buffer was never called - but diff-hl--resolve's callback did. Thanks to @ermingol23 for reporting: #278
1 parent 6b28f8a commit 759e7f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

diff-hl-flydiff.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242

4343
(defun diff-hl-flydiff-changes-buffer (file backend &optional new-rev buffer)
4444
(setq buffer (or buffer " *diff-hl-diff*"))
45-
(setq diff-hl-flydiff-modified-tick (buffer-chars-modified-tick))
4645
(if new-rev
4746
(diff-hl-with-diff-switches
4847
(diff-hl-diff-against-reference file backend buffer new-rev))
@@ -56,6 +55,7 @@
5655
(or (not file)
5756
(file-remote-p default-directory)
5857
(not (file-exists-p file)))))
58+
(setq diff-hl-flydiff-modified-tick (buffer-chars-modified-tick))
5959
(diff-hl-update)))
6060

6161
(defun diff-hl-flydiff/modified-p (state)

0 commit comments

Comments
 (0)