mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-04 14:46:03 +00:00
unicode-input: fix race condition causing incorrect results
This commit is contained in:
parent
77074d627d
commit
86698e0b17
1 changed files with 3 additions and 0 deletions
|
|
@ -99,6 +99,9 @@ func find_matching_codepoints(prefix string) (ans mark_set) {
|
|||
ans.AddItems(marks...)
|
||||
}
|
||||
}
|
||||
if ans == nil {
|
||||
ans = utils.NewSet[uint16](0)
|
||||
}
|
||||
return ans
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue