1
0
mirror of https://github.com/Rudi9719/kbtui.git synced 2026-03-22 11:07:22 +00:00

Don't try to split empty strings

This commit is contained in:
Gregory 'Rudi' Rudolph
2019-09-24 21:28:49 -04:00
parent cfeba8c7dc
commit 2f5b7409b0

View File

@ -258,6 +258,9 @@ func reactToMessage(reaction string) {
} }
func handleInput(g *gocui.Gui) error { func handleInput(g *gocui.Gui) error {
inputString, _ := getInputString(g) inputString, _ := getInputString(g)
if inputString == "" {
return nil
}
command := strings.Split(inputString, " ") command := strings.Split(inputString, " ")
switch strings.ToLower(command[0]) { switch strings.ToLower(command[0]) {