mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 16:54:59 +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()
|
partial = words[-1].lower()
|
||||||
|
|
||||||
matches, _, _ = self.commands.matching_commands(cmd)
|
matches, _, _ = self.commands.matching_commands(cmd)
|
||||||
if len(matches) != 1:
|
if len(matches) == 1:
|
||||||
|
cmd = matches[0]
|
||||||
|
elif cmd not in matches:
|
||||||
return
|
return
|
||||||
cmd = matches[0]
|
|
||||||
|
|
||||||
if cmd not in self.command_completions:
|
if cmd not in self.command_completions:
|
||||||
candidates = self.commands.get_completions(cmd)
|
candidates = self.commands.get_completions(cmd)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue