wip: Removed unnecessary code and added a console rule when getting input.

This commit is contained in:
Paul Gauthier 2023-05-12 13:44:46 -07:00
parent 85515b4788
commit dd82f64a9e
2 changed files with 5 additions and 5 deletions

View file

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

View file

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