mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
fix: Correct spacing in patch_coder.py for accurate matching
This commit is contained in:
parent
6b75a578ac
commit
97e2a7bae0
1 changed files with 2 additions and 1 deletions
|
@ -126,7 +126,8 @@ class PatchCoder(Coder):
|
|||
if current_action.type == ActionType.UPDATE:
|
||||
# This simplified parser doesn't handle @@ context or chunk boundaries well.
|
||||
# It assumes a simple sequence of context, '-', '+' lines per chunk.
|
||||
# A real implementation needs the state machine from apply_patch.py's peek_next_section.
|
||||
# A real implementation needs the state machine from apply_patch.py's
|
||||
# peek_next_section.
|
||||
# Placeholder: treat consecutive -,+ blocks as single chunk for simplicity.
|
||||
if not current_action.chunks:
|
||||
current_action.chunks.append(Chunk()) # Start first chunk
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue