mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
feat: prevent auto-completion after space in command input
This commit is contained in:
parent
97929513ac
commit
f6b50fa4c6
1 changed files with 4 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue