feat: prevent auto-completion after space in command input

This commit is contained in:
Paul Gauthier 2024-08-30 12:37:52 -07:00 committed by Paul Gauthier (aider)
parent 97929513ac
commit f6b50fa4c6

View file

@ -131,6 +131,10 @@ class AutoCompleter(Completer):
if not words:
return
if text and text[-1].isspace():
# don't keep completing after a space
return
if text[0] == "/":
candidates = self.get_command_completions(text, words)
if candidates is not None: