refactor: Improve completion matching for 'add' command

This commit is contained in:
Paul Gauthier 2024-10-03 11:00:18 -07:00 committed by Paul Gauthier (aider)
parent 6093a4c2bb
commit af10953534

View file

@ -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,