mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 16:54:59 +00:00
undo trailing newline "fix"
This commit is contained in:
parent
f47f611e65
commit
c0bf25d05b
1 changed files with 1 additions and 4 deletions
|
@ -99,10 +99,7 @@ def replace_most_similar_chunk(whole, part, replace):
|
||||||
if max_similarity < similarity_thresh:
|
if max_similarity < similarity_thresh:
|
||||||
return
|
return
|
||||||
|
|
||||||
if replace:
|
replace_lines = replace.splitlines()
|
||||||
replace_lines = replace.splitlines() + [""]
|
|
||||||
else:
|
|
||||||
replace_lines = []
|
|
||||||
|
|
||||||
modified_whole = (
|
modified_whole = (
|
||||||
whole_lines[:most_similar_chunk_start]
|
whole_lines[:most_similar_chunk_start]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue