From 7c013dba6a4b74a01007a822e350627e48ca6700 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sat, 31 Aug 2024 14:31:25 -0700 Subject: [PATCH] strip the args for commands --- aider/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/commands.py b/aider/commands.py index b913d4650..746ff04ee 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -199,7 +199,7 @@ class Commands: return first_word = words[0] - rest_inp = inp[len(words[0]) :] + rest_inp = inp[len(words[0]) :].strip() all_commands = self.get_commands() matching_commands = [cmd for cmd in all_commands if cmd.startswith(first_word)]