Преглед изворни кода

Fixes #1225 - wrong line number used to find hunk

main
Eric Amodio пре 4 година
родитељ
комит
7ef0815630
2 измењених фајлова са 2 додато и 1 уклоњено
  1. +1
    -0
      CHANGELOG.md
  2. +1
    -1
      src/hovers/hovers.ts

+ 1
- 0
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

+ 1
- 1
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);

Loading…
Откажи
Сачувај