mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 16:25:00 +00:00
fix /model completions
This commit is contained in:
parent
0541513c7a
commit
ac6c76d530
1 changed files with 3 additions and 2 deletions
|
@ -106,9 +106,10 @@ class AutoCompleter(Completer):
|
|||
partial = words[-1].lower()
|
||||
|
||||
matches, _, _ = self.commands.matching_commands(cmd)
|
||||
if len(matches) != 1:
|
||||
if len(matches) == 1:
|
||||
cmd = matches[0]
|
||||
elif cmd not in matches:
|
||||
return
|
||||
cmd = matches[0]
|
||||
|
||||
if cmd not in self.command_completions:
|
||||
candidates = self.commands.get_completions(cmd)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue