From c499c2f67b6f0f1230c9a6e08bde494c0a3f08c3 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sat, 29 Nov 2025 18:21:31 +0000 Subject: [PATCH] * lisp/vc/diff-mode.el (diff-filename-drop-dir): Match backslashes. --- lisp/vc/diff-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/vc/diff-mode.el b/lisp/vc/diff-mode.el index 47793c9d978..40801eb5a9d 100644 --- a/lisp/vc/diff-mode.el +++ b/lisp/vc/diff-mode.el @@ -1055,7 +1055,7 @@ them, instead." (defvar diff-remembered-defdir nil) (defun diff-filename-drop-dir (file) - (and (string-match "/" file) (substring file (match-end 0)))) + (and (string-match "[/\\]" file) (substring file (match-end 0)))) (defun diff-merge-strings (ancestor from to) "Merge the diff between ANCESTOR and FROM into TO.