Skip to content

Commit 6a9977b

Browse files
committed
Fixes issue where the wrong diff line could be shown
1 parent c0d5f55 commit 6a9977b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gitService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ export class GitService extends Disposable {
671671

672672
return [
673673
chunk.previous[line + deleted - 1],
674-
chunk.current[line + deleted]
674+
chunk.current[line + deleted + (chunk.currentStart - chunk.previousStart)]
675675
];
676676
}
677677
catch (ex) {

0 commit comments

Comments
 (0)