Trying to visit files in magit-diff-paths
output leads to wrong path
#5116
Labels
bug minor
A small thing is broken
magit-diff-paths
output leads to wrong path
#5116
If I diff two files using the
d p
(magit-diff-paths
) and then try to visit the files from the resulting diff buffer usingRET
(magit-diff-visit-file
), this will fail because the attempted path is wrong.Using
Magit 20240320.2336 [>= 3.3.0.50-git], Transient 0.6.0, Git 2.44.0, Emacs 29.3, darwin
Steps to reproduce:
/tmp/foo
,magit-diff-paths
the filesa.txt
andb.txt
Differences between /tmp/foo/a.txt and /tmp/foo/b.txt
(correct)RET
in this buffer to visitb.txt
Expected behavior:
/tmp/foo/b.txt
is opened.Actual behavior: Emacs tries to open
/tmp/foo/tmp/foo/b.txt
instead:process-file: Setting current directory: No such file or directory, /tmp/foo/tmp/foo/
The text was updated successfully, but these errors were encountered: