From 6a1c50649f5d3c86118ef5d0e254f1df01d04c5e Mon Sep 17 00:00:00 2001 From: Dvel Date: Thu, 31 Aug 2023 14:34:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20corrector.lua=20=E4=B8=8D=E5=86=8D?= =?UTF-8?q?=E5=A4=84=E7=90=86=E5=85=B6=E4=BB=96=E7=B1=BB=E5=9E=8B=E7=9A=84?= =?UTF-8?q?=20comment;=20fix=20#461?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/corrector.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lua/corrector.lua b/lua/corrector.lua index 0e82efe..8a87237 100644 --- a/lua/corrector.lua +++ b/lua/corrector.lua @@ -87,9 +87,7 @@ local function corrector(input) local c = corrections[cand.comment] if c and cand.text == c.text then cand:get_genuine().comment = c.comment - elseif cand.type == "reverse_lookup" or cand.type == "unicode" then - -- 不处理反查和 Unicode 的 comment - else + elseif cand.type == "user_phrase" or cand.type == "phrase" or cand.type == "sentence" then cand:get_genuine().comment = "" end yield(cand)