Skip to content

Commit

Permalink
fix: only show old name before rename
Browse files Browse the repository at this point in the history
  • Loading branch information
kometenstaub committed Sep 15, 2023
1 parent 4ac1234 commit 795c84e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/git_diff_view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export default class GitDiffView extends DiffView {
const infoDiv = div.createDiv({
cls: ['u-muted'],
});
if (version.fileName !== this.file.name) {
if (version.fileName !== this.file.path) {
const changedName = infoDiv.createDiv({
text: 'Old name: ' + version.fileName.slice(0, -3),
});
Expand Down

0 comments on commit 795c84e

Please sign in to comment.