mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 01:04:59 +00:00
wip: Removed unnecessary code and added a console rule when getting input.
This commit is contained in:
parent
85515b4788
commit
dd82f64a9e
2 changed files with 5 additions and 5 deletions
|
@ -196,11 +196,6 @@ class Coder:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def run_loop(self):
|
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)
|
inp = self.io.get_input(self.history_file, self.abs_fnames, self.commands)
|
||||||
|
|
||||||
self.num_control_c = 0
|
self.num_control_c = 0
|
||||||
|
|
|
@ -75,6 +75,11 @@ class InputOutput:
|
||||||
return input_line
|
return input_line
|
||||||
|
|
||||||
def get_input(self, history_file, fnames, commands):
|
def get_input(self, history_file, fnames, commands):
|
||||||
|
if self.pretty:
|
||||||
|
self.console.rule()
|
||||||
|
else:
|
||||||
|
print()
|
||||||
|
|
||||||
fnames = list(fnames)
|
fnames = list(fnames)
|
||||||
if len(fnames) > 1:
|
if len(fnames) > 1:
|
||||||
common_prefix = os.path.commonpath(fnames)
|
common_prefix = os.path.commonpath(fnames)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue