From 22b157a8fa650018038c258a8597417faf85ea0c Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Thu, 15 Dec 2016 16:11:41 +0300 Subject: [PATCH] fix panic for empty shell completions --- comp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comp.go b/comp.go index e8725d4..05f31c7 100644 --- a/comp.go +++ b/comp.go @@ -237,7 +237,7 @@ func compCmd(acc []rune) (matches []string, longestAcc []rune) { func compShell(acc []rune) (matches []string, longestAcc []rune) { s := string(acc) - f := strings.Fields(s) + f := tokenize(s) var longest string