mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 16:25:00 +00:00
Merge branch 'call-graph' into gpt-35
This commit is contained in:
commit
d1cc4b93be
1 changed files with 5 additions and 1 deletions
|
@ -99,7 +99,11 @@ def replace_most_similar_chunk(whole, part, replace):
|
|||
if max_similarity < similarity_thresh:
|
||||
return
|
||||
|
||||
replace_lines = replace.splitlines() + [""]
|
||||
if replace:
|
||||
replace_lines = replace.splitlines() + [""]
|
||||
else:
|
||||
replace_lines = []
|
||||
|
||||
modified_whole = (
|
||||
whole_lines[:most_similar_chunk_start]
|
||||
+ replace_lines
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue