mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
fix: Update prompt_ask function to use default value correctly
This commit is contained in:
parent
5bdb5489dd
commit
454d0206bc
2 changed files with 2 additions and 2 deletions
|
@ -724,7 +724,7 @@ class Commands:
|
|||
add = result.returncode != 0
|
||||
else:
|
||||
response = self.io.prompt_ask(
|
||||
"Add the output to the chat?\n(Y/n/instructions)", default=""
|
||||
"Add the output to the chat?\n[Y/n/instructions]",
|
||||
).strip()
|
||||
|
||||
if response.lower() in ["yes", "y"]:
|
||||
|
|
|
@ -404,7 +404,7 @@ class InputOutput:
|
|||
|
||||
return is_yes
|
||||
|
||||
def prompt_ask(self, question, default=None, subject=None):
|
||||
def prompt_ask(self, question, default="", subject=None):
|
||||
self.num_user_asks += 1
|
||||
|
||||
if subject:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue