* lisp/vc/vc-dir.el (vc-dir-resynch-file): Use file-in-directory-p.

For better compatibility with MS-Windows.
This commit is contained in:
Sean Whitton 2025-10-13 16:38:14 +01:00
parent 7e38562bcd
commit 78416e8bed

View file

@ -1249,7 +1249,7 @@ that file."
;; `default-directory' in order to do its work,
;; but that's irrelevant to us here.
(buffer-local-toplevel-value 'default-directory))))
(when (string-prefix-p ddir file)
(when (file-in-directory-p file ddir)
(if (file-directory-p file)
(progn
(vc-dir-resync-directory-files file)