mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
fix: Ensure command starts with slash before retrieving raw completions
This commit is contained in:
parent
0a77b6cfac
commit
8e02cadfbc
1 changed files with 3 additions and 0 deletions
|
@ -165,7 +165,10 @@ class Commands:
|
|||
return inp[0] in "/!"
|
||||
|
||||
def get_raw_completions(self, cmd):
|
||||
assert cmd.startswith("/")
|
||||
cmd = cmd[1:]
|
||||
cmd = cmd.replace("-", "_")
|
||||
|
||||
raw_completer = getattr(self, f"completions_raw_{cmd}", None)
|
||||
return raw_completer
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue