We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0076b8 commit 7d873b2Copy full SHA for 7d873b2
1 file changed
diff-hl-flydiff.el
@@ -1,4 +1,4 @@
1
-;; Copyright (C) 2015-2025 Free Software Foundation, Inc. -*- lexical-binding: t -*-
+;; Copyright (C) 2015-2026 Free Software Foundation, Inc. -*- lexical-binding: t -*-
2
3
;; Author: Jonathan Hayase <PythonNut@gmail.com>
4
;; URL: https://github.com/dgutov/diff-hl
@@ -57,8 +57,9 @@
57
(not (file-exists-p buffer-file-name)))
58
(diff-hl-update)))
59
60
-(defun diff-hl-flydiff/modified-p (_state)
61
- (buffer-modified-p))
+(defun diff-hl-flydiff/modified-p (state)
+ (unless (memq state '(added missing nil))
62
+ (buffer-modified-p)))
63
64
;;;###autoload
65
(define-minor-mode diff-hl-flydiff-mode
0 commit comments