mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
fix: Remove unnecessary slice from event name in Commands.run
This commit is contained in:
parent
860a36fe6c
commit
9ed732959e
1 changed files with 1 additions and 1 deletions
|
@ -206,7 +206,7 @@ class Commands:
|
|||
self.coder.event(f"command_{command}")
|
||||
return self.do_run(command, rest_inp)
|
||||
elif first_word in matching_commands:
|
||||
self.coder.event(f"command_{first_word[1:]}")
|
||||
self.coder.event(f"command_{first_word}")
|
||||
return self.do_run(first_word[1:], rest_inp)
|
||||
elif len(matching_commands) > 1:
|
||||
self.io.tool_error(f"Ambiguous command: {', '.join(matching_commands)}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue