From 9ed732959ea699948eab3d70f0a7bbde2449209c Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Mon, 12 Aug 2024 18:22:51 -0700 Subject: [PATCH] fix: Remove unnecessary slice from event name in Commands.run --- aider/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/commands.py b/aider/commands.py index 4003e7daf..b900d7c98 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -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)}")