Skip to content

Commit

Permalink
Fix diff rendering calculating the current line incorrectly
Browse files Browse the repository at this point in the history
  • Loading branch information
mclaughlinconnor committed Sep 6, 2024
1 parent f0bdd16 commit bbd9b04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/GitDiff.hx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class GitDiff {
var start = change.getStartLineB(sideEnum);
var end = change.getEndLineB(side);

currentLine = pushLinesUntil(hunk, myLines[side.getIndex()], start, end);
pushLinesUntil(hunk, myLines[side.getIndex()], start, end);

hunk.add(PRE_BASE_MARKER);

Expand All @@ -85,7 +85,7 @@ class GitDiff {
start = change.getStartLineB(sideEnum);
end = change.getEndLineB(side);

currentLine = pushLinesUntil(hunk, myLines[side.getIndex()], start, end);
pushLinesUntil(hunk, myLines[side.getIndex()], start, end);

hunk.add(RIGHT_MARKER);

Expand Down

0 comments on commit bbd9b04

Please sign in to comment.