mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 02:05:00 +00:00
fix tests and bug
This commit is contained in:
parent
fe4a2836b7
commit
6133eb61c1
2 changed files with 6 additions and 3 deletions
|
@ -44,7 +44,10 @@ def replace_most_similar_chunk(whole, part, replace):
|
|||
+ replace_lines
|
||||
+ whole_lines[most_similar_chunk_end:]
|
||||
)
|
||||
modified_whole = "\n".join(modified_whole) + "\n"
|
||||
modified_whole = "\n".join(modified_whole)
|
||||
|
||||
if whole.endswith("\n"):
|
||||
modified_whole += "\n"
|
||||
|
||||
return modified_whole
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue