aboutsummaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
Diffstat (limited to 'commands')
-rw-r--r--commands/commands.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/commands/commands.go b/commands/commands.go
index 4038fe22..c6f149f2 100644
--- a/commands/commands.go
+++ b/commands/commands.go
@@ -56,11 +56,7 @@ type CommandSource interface {
Commands() *Commands
}
-func (cmds *Commands) ExecuteCommand(aerc *widgets.Aerc, cmd string) error {
- args, err := shlex.Split(cmd)
- if err != nil {
- return err
- }
+func (cmds *Commands) ExecuteCommand(aerc *widgets.Aerc, args []string) error {
if len(args) == 0 {
return errors.New("Expected a command.")
}