mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 18:25: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 "/!"
|
return inp[0] in "/!"
|
||||||
|
|
||||||
def get_raw_completions(self, cmd):
|
def get_raw_completions(self, cmd):
|
||||||
|
assert cmd.startswith("/")
|
||||||
|
cmd = cmd[1:]
|
||||||
cmd = cmd.replace("-", "_")
|
cmd = cmd.replace("-", "_")
|
||||||
|
|
||||||
raw_completer = getattr(self, f"completions_raw_{cmd}", None)
|
raw_completer = getattr(self, f"completions_raw_{cmd}", None)
|
||||||
return raw_completer
|
return raw_completer
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue