diff --git a/CHANGELOG.md b/CHANGELOG.md index 4206b6c..1d5bc80 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p ### Fixed +- Fixes [#1225](https://github.com/eamodio/vscode-gitlens/issues/1225) - Changes hover is wrong if the original/new line number doesn't match - Fixes [#1045](https://github.com/eamodio/vscode-gitlens/issues/1045) - View File History not working - absolute path used — thanks to [PR #1209](https://github.com/eamodio/vscode-gitlens/pull/1209) by Mike Surcouf ([@mikes-gh](https://github.com/mikes-gh)) - Fixes [#1087](https://github.com/eamodio/vscode-gitlens/issues/1087) - Error retrieving line history from UNC path — thanks to [PR #1209](https://github.com/eamodio/vscode-gitlens/pull/1209) by Mike Surcouf ([@mikes-gh](https://github.com/mikes-gh)) - Fixes [#1176](https://github.com/eamodio/vscode-gitlens/issues/1176) - Can't selectively apply stash diff --git a/src/hovers/hovers.ts b/src/hovers/hovers.ts index 5ae6db7..c2d5177 100644 --- a/src/hovers/hovers.ts +++ b/src/hovers/hovers.ts @@ -47,7 +47,7 @@ export namespace Hovers { } } - editorLine = commitLine.originalLine - 1; + editorLine = commitLine.line - 1; // TODO: Doesn't work with dirty files -- pass in editor? or contents? hunkLine = await Container.git.getDiffForLine(uri, editorLine, ref, documentRef, originalFileName);