From 99f330f30bfbff077e90a6ee42bfecc428a693a6 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 21 Aug 2024 16:08:52 -0700 Subject: [PATCH] fix: Improve formatting of file list and edit format in input prompt --- aider/io.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/aider/io.py b/aider/io.py index cb7f0853d..b4c953663 100644 --- a/aider/io.py +++ b/aider/io.py @@ -246,8 +246,12 @@ class InputOutput: print() rel_fnames = list(rel_fnames) - show = " ".join(rel_fnames) - show += f"\n{edit_format}\n> " + show = "" + if rel_fnames: + show = " ".join(rel_fnames) + "\n" + if edit_format: + show += edit_format + show += "> " inp = "" multiline_input = False