mirror of
https://github.com/friebetill/obsidian-file-diff.git
synced 2026-07-22 07:40:25 +00:00
fix bug where files have same name but differing paths
This commit is contained in:
parent
ad651d827e
commit
00567dea68
1 changed files with 1 additions and 1 deletions
|
|
@ -174,7 +174,7 @@ export default class FileDiffPlugin extends Plugin {
|
|||
''
|
||||
);
|
||||
const originalFile = files.find(
|
||||
(f) => f.name === originalFileName
|
||||
(f) => f.name === originalFileName && (file.parent?.path ?? "") === (f.parent?.path ?? "")
|
||||
);
|
||||
|
||||
if (originalFile) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue