From abb3c936f73c645f2331d83f50d843033faf0a2a Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Tue, 26 Nov 2024 10:58:22 -0800 Subject: [PATCH] refactor: simplify input interruption using placeholder variable --- aider/io.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/aider/io.py b/aider/io.py index 0e14aa138..2700df853 100644 --- a/aider/io.py +++ b/aider/io.py @@ -202,7 +202,6 @@ class InputOutput: ): self.placeholder = None self.never_prompts = set() - self.interrupted_partial_input = None self.editingmode = editingmode no_color = os.environ.get("NO_COLOR") if no_color is not None and no_color != "": @@ -379,7 +378,7 @@ class InputOutput: def interrupt_input(self): if self.prompt_session and self.prompt_session.app: # Store any partial input before interrupting - self.interrupted_partial_input = self.prompt_session.app.current_buffer.text + self.placeholder = self.prompt_session.app.current_buffer.text self.prompt_session.app.exit() def get_input(