mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-02 18:54:59 +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:
|
elif self.yes is False:
|
||||||
res = "no"
|
res = "no"
|
||||||
else:
|
else:
|
||||||
res = prompt(question + " ", default=default, style=style)
|
res = self.prompt_session.prompt(
|
||||||
|
question + " ",
|
||||||
|
default=default,
|
||||||
|
style=style
|
||||||
|
)
|
||||||
|
|
||||||
hist = f"{question.strip()} {res.strip()}"
|
hist = f"{question.strip()} {res.strip()}"
|
||||||
self.append_chat_history(hist, linebreak=True, blockquote=True)
|
self.append_chat_history(hist, linebreak=True, blockquote=True)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue