fix: 修正reduce_english_filter.lua特定条件下吞掉英文候选词的问题 (#1274)

This commit is contained in:
Zhen Zhang
2025-06-19 10:21:08 -04:00
committed by GitHub
parent eeb559e70b
commit bd514e4e78

View File

@@ -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