diff --git a/aider/coder.py b/aider/coder.py index 13fbd1265..66fb675b9 100755 --- a/aider/coder.py +++ b/aider/coder.py @@ -196,11 +196,6 @@ class Coder: return True def run_loop(self): - if self.pretty: - self.console.rule() - else: - print() - inp = self.io.get_input(self.history_file, self.abs_fnames, self.commands) self.num_control_c = 0 diff --git a/aider/getinput.py b/aider/getinput.py index 10f1c11c8..873910aed 100644 --- a/aider/getinput.py +++ b/aider/getinput.py @@ -75,6 +75,11 @@ class InputOutput: return input_line def get_input(self, history_file, fnames, commands): + if self.pretty: + self.console.rule() + else: + print() + fnames = list(fnames) if len(fnames) > 1: common_prefix = os.path.commonpath(fnames)