branch: externals/diff-hl
commit ca4391f09e849ffc1c86c4a7ee8a097a838f1cc5
Merge: 9092cfcaf8 581c5771a3
Author: Dmitry Gutov <[email protected]>
Commit: GitHub <[email protected]>

    Merge pull request #280 from danielfleischer/patch-1
    
    Fix: diff-hl-magit-post-refresh wrong file name
---
 diff-hl.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/diff-hl.el b/diff-hl.el
index f082ecce75..4be92ce3ff 100644
--- a/diff-hl.el
+++ b/diff-hl.el
@@ -1457,7 +1457,7 @@ The value of this variable is a mode line template as in
             (let* ((backend (vc-backend file)))
               (when backend
                 (cond
-                 ((member file modified-files)
+                 ((member (file-relative-name file topdir) modified-files)
                   (when (memq (vc-state file) unmodified-states)
                     (vc-state-refresh file backend))
                   (diff-hl-update))

Reply via email to