mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
wip: Changed get_input to add a newline if show is longer than 10 characters.
This commit is contained in:
parent
5df2e68eb6
commit
24591473e6
1 changed files with 3 additions and 1 deletions
|
@ -56,7 +56,9 @@ def get_input(history_file, fnames):
|
|||
else:
|
||||
short_fnames = [os.path.basename(fnames[0])]
|
||||
show = ' '.join(short_fnames)
|
||||
show += "\n> "
|
||||
if len(show) > 10:
|
||||
show += "\n"
|
||||
show += "> "
|
||||
|
||||
if not sys.stdin.isatty():
|
||||
return canned_input(show_prompt)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue