Fixed a bug in getinput.py where the completer now matches words case-insensitively.

This commit is contained in:
Paul Gauthier 2023-05-10 10:57:13 -07:00
parent 43331aad89
commit a76781b519

View file

@ -40,7 +40,7 @@ class FileContentCompleter(Completer):
last_word = words[-1]
for word in self.words:
if word.startswith(last_word):
if word.lower().startswith(last_word.lower()):
yield Completion(word, start_position=-len(last_word))
def canned_input(show_prompt):