summaryrefslogtreecommitdiff
path: root/src/patch.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/patch.c')
-rw-r--r--src/patch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/patch.c b/src/patch.c
index 1f353c1..bba7e0e 100644
--- a/src/patch.c
+++ b/src/patch.c
@@ -1135,7 +1135,7 @@ locate_hunk (lin fuzz)
lin prefix_fuzz = fuzz + prefix_context - context;
lin suffix_fuzz = fuzz + suffix_context - context;
lin max_where = input_lines - (pat_lines - suffix_fuzz) + 1;
- lin min_where = last_frozen_line + 1 - (prefix_context - prefix_fuzz);
+ lin min_where = last_frozen_line + 1;
lin max_pos_offset = max_where - first_guess;
lin max_neg_offset = first_guess - min_where;
lin max_offset = MAX(max_pos_offset, max_neg_offset);