From dd82f64a9e5a328153493b07a4903acde18ca6c1 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 12 May 2023 13:44:46 -0700 Subject: [PATCH] wip: Removed unnecessary code and added a console rule when getting input. --- aider/coder.py | 5 ----- aider/getinput.py | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) 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)