chore: clean code

This commit is contained in:
Mirtle
2026-03-26 17:52:31 +08:00
parent 17a04afe39
commit ff1da70fbd
7 changed files with 11 additions and 15 deletions

View File

@@ -26,8 +26,8 @@ local function unicode(input, seg, env)
yield(Candidate("unicode", seg.start, seg._end, text, string.format("U%x", code)))
if code < 0x10000 then
for i = 0, 15 do
local text = utf8.char(code * 16 + i)
yield(Candidate("unicode", seg.start, seg._end, text, string.format("U%x~%x", code, i)))
local next_text = utf8.char(code * 16 + i)
yield(Candidate("unicode", seg.start, seg._end, next_text, string.format("U%x~%x", code, i)))
end
end
end