From 83b401b2410af67524b48dfe376bad9829b0c0de Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 6 Feb 2025 14:10:22 -0800 Subject: [PATCH] feat: Add dot after newline in multiline input mode --- aider/io.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/aider/io.py b/aider/io.py index f06467892..9787cf972 100644 --- a/aider/io.py +++ b/aider/io.py @@ -504,7 +504,7 @@ class InputOutput: "Handle Enter key press" if self.multiline_mode: # In multiline mode, Enter adds a newline - event.current_buffer.insert_text("\n") + event.current_buffer.insert_text("\n. ") else: # In normal mode, Enter submits event.current_buffer.validate_and_handle() @@ -517,7 +517,7 @@ class InputOutput: event.current_buffer.validate_and_handle() else: # In normal mode, Alt+Enter adds a newline - event.current_buffer.insert_text("\n") + event.current_buffer.insert_text("\n. ") while True: if multiline_input: @@ -680,6 +680,7 @@ class InputOutput: return True return False + @restore_multiline def confirm_ask( self, question,