diff --git a/words/words.go b/words/words.go index 72aa142ce..2d0c94925 100644 --- a/words/words.go +++ b/words/words.go @@ -48,6 +48,8 @@ func parseWords(txt []byte) []string { i := bytes.IndexByte(txt, '\n') if i != -1 { word, txt = word[:i], txt[i+1:] + } else { + txt = nil } if word := strings.TrimSpace(string(word)); word != "" && word[0] != '#' { ret = append(ret, word)