fix: corrector.lua 不再处理其他类型的 comment; fix #461
This commit is contained in:
parent
f535fd31cb
commit
6a1c50649f
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user