mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-02 18:54:59 +00:00
refactor: Update input handling to set and use placeholder text
This commit is contained in:
parent
13cb6a315c
commit
2c12234604
2 changed files with 3 additions and 2 deletions
|
@ -1367,7 +1367,8 @@ class Commands:
|
|||
user_input = pipe_editor(initial_content, suffix="md", editor=self.editor)
|
||||
self.io.user_input(user_input, log_only=False)
|
||||
self.io.add_to_input_history(user_input)
|
||||
return user_input
|
||||
if user_input.strip():
|
||||
self.io.set_placeholder(user_input.rstrip())
|
||||
|
||||
|
||||
def expand_subdir(file_path):
|
||||
|
|
|
@ -429,7 +429,7 @@ class InputOutput:
|
|||
try:
|
||||
if self.prompt_session:
|
||||
# Use placeholder if set, then clear it
|
||||
default = self.placeholder
|
||||
default = self.placeholder or ""
|
||||
self.placeholder = None
|
||||
|
||||
line = self.prompt_session.prompt(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue