diff --git a/main.go b/main.go index 13dfcc0..a3ead73 100644 --- a/main.go +++ b/main.go @@ -632,6 +632,9 @@ func handleInput(viewName string) error { } if strings.HasPrefix(inputString, cmdPrefix) { cmd := delete_empty(strings.Split(inputString[len(cmdPrefix):], " ")) + if len(cmd) < 1 { + return nil + } if c, ok := commands[cmd[0]]; ok { c.Exec(cmd) return nil