From bd514e4e788f216d25fcc74516f7bf4a82e74163 Mon Sep 17 00:00:00 2001 From: Zhen Zhang <49929323+pqpeqr@users.noreply.github.com> Date: Thu, 19 Jun 2025 10:21:08 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3reduce=5Fenglish=5Ffil?= =?UTF-8?q?ter.lua=E7=89=B9=E5=AE=9A=E6=9D=A1=E4=BB=B6=E4=B8=8B=E5=90=9E?= =?UTF-8?q?=E6=8E=89=E8=8B=B1=E6=96=87=E5=80=99=E9=80=89=E8=AF=8D=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20(#1274)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/reduce_english_filter.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lua/reduce_english_filter.lua b/lua/reduce_english_filter.lua index dc554dc..fae89ff 100644 --- a/lua/reduce_english_filter.lua +++ b/lua/reduce_english_filter.lua @@ -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