From 763993abb6c4e178bec0f50c15d7c9b5a1d18fdc Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Wed, 29 Nov 2023 15:33:58 -0500 Subject: [PATCH] Fixes open [previous] changes w/ working for comparisons --- src/views/viewCommands.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/viewCommands.ts b/src/views/viewCommands.ts index cff589c..2353a17 100644 --- a/src/views/viewCommands.ts +++ b/src/views/viewCommands.ts @@ -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}^`, }); }