fix: corrector.lua 不再处理其他类型的 comment; fix #461

This commit is contained in:
Dvel 2023-08-31 14:34:49 +08:00
parent f535fd31cb
commit 6a1c50649f

View File

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