branch: externals/diff-hl
commit 581c5771a383621d74fd9727661dc291f02ce393
Author: Daniel Fleischer <[email protected]>
Commit: Daniel Fleischer <[email protected]>
fix: Match relative file name in diff-hl-magit-post-refresh
- Use `file-relative-name` instead of `file-name-nondirectory` to
properly match files in subdirectories against `modified-files`
---
diff-hl.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/diff-hl.el b/diff-hl.el
index 2eb7a34b53..14f0ceaea0 100644
--- a/diff-hl.el
+++ b/diff-hl.el
@@ -1437,7 +1437,7 @@ The value of this variable is a mode line template as in
(backend (vc-backend file)))
(when backend
(cond
- ((member (file-name-nondirectory 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))