Forgot to exclude some control chars from unicode name based searching

This commit is contained in:
Kovid Goyal 2023-02-14 18:25:07 +05:30
parent 311a0cbfe9
commit fb66cbc792
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -27,6 +27,9 @@ var marks []rune
var word_map map[string][]uint16
func add_word(codepoint uint16, word []byte) {
if codepoint <= 32 || codepoint == 127 || (128 <= codepoint && codepoint <= 159) || len(word) < 2 {
return
}
w := utils.UnsafeBytesToString(word)
word_map[w] = append(word_map[w], codepoint)
}