mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 02:05:00 +00:00
refactor: use pre-initialized PromptSession in prompt_ask function
This commit is contained in:
parent
bf3a165961
commit
43eaf91e8d
1 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue