From bd0cef514217e6232ca5e72b6214be48e4858746 Mon Sep 17 00:00:00 2001 From: Patrick Elsen Date: Wed, 30 Oct 2024 23:02:22 +0100 Subject: [PATCH] Update data.rs --- src/data.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data.rs b/src/data.rs index 83c2262..65a7fb8 100644 --- a/src/data.rs +++ b/src/data.rs @@ -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 {