mirror of
https://github.com/iDvel/rime-ice.git
synced 2026-06-08 07:30:56 +08:00
chore: clean code
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user