wip: Changed get_input to add a newline if show is longer than 10 characters.

This commit is contained in:
Paul Gauthier 2023-05-10 10:09:47 -07:00
parent 5df2e68eb6
commit 24591473e6

View file

@ -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)