mirror of
https://github.com/d0zingcat/rime-ice.git
synced 2026-05-13 15:09:58 +00:00
fix: 修正reduce_english_filter.lua特定条件下吞掉英文候选词的问题 (#1274)
This commit is contained in:
@@ -97,12 +97,13 @@ function M.func(input, env)
|
||||
table.insert(pending_cands, cand)
|
||||
end
|
||||
if index >= M.idx + #pending_cands - 1 then
|
||||
for _, cand in ipairs(pending_cands) do
|
||||
yield(cand)
|
||||
end
|
||||
break
|
||||
end
|
||||
end
|
||||
-- 将pending_cands按顺序输出
|
||||
for _, cand in ipairs(pending_cands) do
|
||||
yield(cand)
|
||||
end
|
||||
end
|
||||
|
||||
-- yield other
|
||||
|
||||
Reference in New Issue
Block a user