From f6b50fa4c6439be872c484f73cfca3456a4542be Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 30 Aug 2024 12:37:52 -0700 Subject: [PATCH] feat: prevent auto-completion after space in command input --- aider/io.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aider/io.py b/aider/io.py index 2f1671c04..f1eabaabb 100644 --- a/aider/io.py +++ b/aider/io.py @@ -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: