Browse Source

Fixes open [previous] changes w/ working for comparisons

main
Eric Amodio 1 year ago
parent
commit
763993abb6
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/views/viewCommands.ts

+ 2
- 2
src/views/viewCommands.ts View File

@ -1180,7 +1180,7 @@ export class ViewCommands {
return CommitActions.openChangesWithWorking(node.file, {
repoPath: node.repoPath,
ref: node.ref.ref,
ref: node.is('results-file') ? node.ref2 : node.ref.ref,
});
}
@ -1190,7 +1190,7 @@ export class ViewCommands {
return CommitActions.openChangesWithWorking(node.file, {
repoPath: node.repoPath,
ref: `${node.ref.ref}^`,
ref: node.is('results-file') ? node.ref1 : `${node.ref.ref}^`,
});
}

Loading…
Cancel
Save