mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 02:05:00 +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
|
add = result.returncode != 0
|
||||||
else:
|
else:
|
||||||
response = self.io.prompt_ask(
|
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()
|
).strip()
|
||||||
|
|
||||||
if response.lower() in ["yes", "y"]:
|
if response.lower() in ["yes", "y"]:
|
||||||
|
|
|
@ -404,7 +404,7 @@ class InputOutput:
|
||||||
|
|
||||||
return is_yes
|
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
|
self.num_user_asks += 1
|
||||||
|
|
||||||
if subject:
|
if subject:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue