fix panic for empty shell completions

This commit is contained in:
Gokcehan 2016-12-15 16:11:41 +03:00
parent 751290ed9b
commit 22b157a8fa

View File

@ -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