Browse Source

Fixes issue where the wrong diff line could be shown

main
Eric Amodio 7 years ago
parent
commit
6a9977b954
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/gitService.ts

+ 1
- 1
src/gitService.ts View File

@ -671,7 +671,7 @@ export class GitService extends Disposable {
return [ return [
chunk.previous[line + deleted - 1], chunk.previous[line + deleted - 1],
chunk.current[line + deleted]
chunk.current[line + deleted + (chunk.currentStart - chunk.previousStart)]
]; ];
} }
catch (ex) { catch (ex) {

Loading…
Cancel
Save