This commit is contained in:
Paul Gauthier 2023-06-05 11:32:26 -07:00
parent c17e454608
commit 579fc39d61

View file

@ -15,7 +15,7 @@ from rich.console import Console
from rich.text import Text from rich.text import Text
class FileContentCompleter(Completer): class AutoCompleter(Completer):
def __init__(self, root, rel_fnames, addable_rel_fnames, commands): def __init__(self, root, rel_fnames, addable_rel_fnames, commands):
self.commands = commands self.commands = commands
self.addable_rel_fnames = addable_rel_fnames self.addable_rel_fnames = addable_rel_fnames
@ -142,9 +142,7 @@ class InputOutput:
style = None style = None
while True: while True:
completer_instance = FileContentCompleter( completer_instance = AutoCompleter(root, rel_fnames, addable_rel_fnames, commands)
root, rel_fnames, addable_rel_fnames, commands
)
if multiline_input: if multiline_input:
show = ". " show = ". "