From b6655c82fb71892e9c6bf8cdeec369258e38d006 Mon Sep 17 00:00:00 2001 From: Dvel Date: Mon, 9 Oct 2023 23:23:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20reduce=5Fenglish=5Ffilter.lua=20?= =?UTF-8?q?=E4=B8=8D=E5=A4=84=E7=90=86=E9=9D=9E=E8=8B=B1=E6=96=87=E5=8D=95?= =?UTF-8?q?=E8=AF=8D=20=20fix=20#505?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/reduce_english_filter.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/reduce_english_filter.lua b/lua/reduce_english_filter.lua index 6c8ef62..cbca494 100644 --- a/lua/reduce_english_filter.lua +++ b/lua/reduce_english_filter.lua @@ -25,7 +25,7 @@ function M.func(input, env) for cand in input:iter() do index = index + 1 -- 定位匹配的英文词 - if not string.find(cand.preedit, " ") then + if not string.find(cand.preedit, " ") and not string.match(cand.text, "%A") then table.insert(pending_cands, cand) else yield(cand)