Skip to content

Commit

Permalink
Update data.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
xfbs authored Oct 30, 2024
1 parent 5504aca commit bd0cef5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -500,8 +500,8 @@ impl VersionDiff {
left_start,
right_start,
);
let overlaps_with_last_hunk =
hunk.0.start.max(last_hunk.0.start) <= hunk.0.end.min(last_hunk.0.end) + CONTEXT_LINES;
let overlaps_with_last_hunk = hunk.0.start.max(last_hunk.0.start)
<= hunk.0.end.min(last_hunk.0.end) + CONTEXT_LINES;
if overlaps_with_last_hunk {
last_hunk = (last_hunk.0.start..hunk.0.end, last_hunk.1, last_hunk.2);
} else {
Expand Down

0 comments on commit bd0cef5

Please sign in to comment.