From c0bf25d05bd7a27d139e596c7f517cb49b0b41e0 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sun, 4 Jun 2023 15:03:13 -0700 Subject: [PATCH] undo trailing newline "fix" --- aider/utils.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/aider/utils.py b/aider/utils.py index 61af34379..942d72757 100644 --- a/aider/utils.py +++ b/aider/utils.py @@ -99,10 +99,7 @@ def replace_most_similar_chunk(whole, part, replace): if max_similarity < similarity_thresh: return - if replace: - replace_lines = replace.splitlines() + [""] - else: - replace_lines = [] + replace_lines = replace.splitlines() modified_whole = ( whole_lines[:most_similar_chunk_start]