mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-02-16 10:58:34 -05:00
Fixes changes hover not showing the correct diff when showing recent changes annotations
This commit is contained in:
@@ -50,7 +50,8 @@ export class RecentChangesAnnotationProvider extends AnnotationProviderBase {
|
|||||||
|
|
||||||
let message: string | undefined = undefined;
|
let message: string | undefined = undefined;
|
||||||
if (cfg.hover.changes) {
|
if (cfg.hover.changes) {
|
||||||
message = Annotations.getHoverDiffMessage(commit, chunk.previous[count], change);
|
const previousPos = count - (chunk.previousPosition.start + (chunk.previousPosition.start - chunk.currentPosition.start)) + 1;
|
||||||
|
message = Annotations.getHoverDiffMessage(commit, chunk.previous[previousPos], change);
|
||||||
}
|
}
|
||||||
|
|
||||||
decorators.push({
|
decorators.push({
|
||||||
|
|||||||
Reference in New Issue
Block a user