mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 09:14:59 +00:00
fix: Improve handling of interleaved +/- lines in patch parsing
This commit is contained in:
parent
0f78a0ac5c
commit
1c54857422
1 changed files with 2 additions and 2 deletions
|
@ -163,8 +163,8 @@ def _peek_change_hunk(
|
|||
context_after.append(line_content)
|
||||
mode = "context_after"
|
||||
elif line_type == "delete":
|
||||
# This implies interleaved +/- lines which this simplified parser doesn't handle well.
|
||||
# Treat as end of hunk? Or raise error? Let's treat as end for now.
|
||||
# Interleaved +/- lines are not handled well by this simplified parser.
|
||||
# Treat as end of hunk for now.
|
||||
index = current_line_index # Put the delete line back for the next hunk
|
||||
break
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue