From 24591473e6ceae875f6f50eb108cad48ff3393bb Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 10 May 2023 10:09:47 -0700 Subject: [PATCH] wip: Changed get_input to add a newline if show is longer than 10 characters. --- aider/getinput.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aider/getinput.py b/aider/getinput.py index d7b721b09..bccaf0245 100644 --- a/aider/getinput.py +++ b/aider/getinput.py @@ -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)