mirror of
https://github.com/iDvel/rime-ice.git
synced 2026-05-14 00:30:37 +08:00
style: Lua 统一缩进 4 空格
This commit is contained in:
20
rime.lua
20
rime.lua
@@ -83,18 +83,18 @@ cold_word_drop_filter = require("cold_word_drop.filter")
|
||||
-- 详情 https://github.com/hchunhui/librime-lua/issues/307
|
||||
-- 这样也不会导致卡顿,那就每次都调用一下吧,内存稳稳的
|
||||
function force_gc()
|
||||
-- collectgarbage()
|
||||
collectgarbage("step")
|
||||
-- collectgarbage()
|
||||
collectgarbage("step")
|
||||
end
|
||||
|
||||
-- 临时用的
|
||||
function debug_checker(input, env)
|
||||
for cand in input:iter() do
|
||||
yield(ShadowCandidate(
|
||||
cand,
|
||||
cand.type,
|
||||
cand.text,
|
||||
env.engine.context.input .. " - " .. env.engine.context:get_preedit().text .. " - " .. cand.preedit
|
||||
))
|
||||
end
|
||||
for cand in input:iter() do
|
||||
yield(ShadowCandidate(
|
||||
cand,
|
||||
cand.type,
|
||||
cand.text,
|
||||
env.engine.context.input .. " - " .. env.engine.context:get_preedit().text .. " - " .. cand.preedit
|
||||
))
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user