From 43eaf91e8dcc3a60e3259eac4f7a211144696c71 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Tue, 10 Sep 2024 10:00:00 -0700 Subject: [PATCH] refactor: use pre-initialized PromptSession in prompt_ask function --- aider/io.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/aider/io.py b/aider/io.py index ec461eb17..976f6a574 100644 --- a/aider/io.py +++ b/aider/io.py @@ -519,7 +519,11 @@ class InputOutput: elif self.yes is False: res = "no" else: - res = prompt(question + " ", default=default, style=style) + res = self.prompt_session.prompt( + question + " ", + default=default, + style=style + ) hist = f"{question.strip()} {res.strip()}" self.append_chat_history(hist, linebreak=True, blockquote=True)