Skip to content

Commit

Permalink
fix(lua): reduce_english_filter.lua 不再处理 custom_phrase.txt 的词句
Browse files Browse the repository at this point in the history
  • Loading branch information
iDvel committed Nov 26, 2024
1 parent b4fbfa4 commit a37e5d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/reduce_english_filter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function M.func(input, env)
for cand in input:iter() do
index = index + 1
-- 找到要降低的英文词,加入 pending_cands
if cand.preedit:find(" ") or not cand.text:match("[a-zA-Z]") then
if cand.preedit:find(" ") or not cand.text:match("[a-zA-Z]") or cand.type == "user_table" then
yield(cand)
else
table.insert(pending_cands, cand)
Expand Down

0 comments on commit a37e5d0

Please sign in to comment.