diff options
Diffstat (limited to 'commands/commands.go')
-rw-r--r-- | commands/commands.go | 6 |
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.") } |