From 6a9977b95427967b620b23fea9f4e47c0ae1676e Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Fri, 2 Jun 2017 15:12:31 -0400 Subject: [PATCH] Fixes issue where the wrong diff line could be shown --- src/gitService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gitService.ts b/src/gitService.ts index 670d434..68989e3 100644 --- a/src/gitService.ts +++ b/src/gitService.ts @@ -671,7 +671,7 @@ export class GitService extends Disposable { return [ chunk.previous[line + deleted - 1], - chunk.current[line + deleted] + chunk.current[line + deleted + (chunk.currentStart - chunk.previousStart)] ]; } catch (ex) {