From af10953534e6113dfacc3c66668fa7328fdecb98 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 3 Oct 2024 11:00:18 -0700 Subject: [PATCH] refactor: Improve completion matching for 'add' command --- aider/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/commands.py b/aider/commands.py index ce3d0b6e7..4f9b1d753 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -617,7 +617,7 @@ class Commands: # Add completions from the 'add' command add_completions = self.completions_add() for completion in add_completions: - if completion.startswith(after_command): + if after_command in completion: yield Completion( text=completion, start_position=adjusted_start_position,