Skip to content

Commit

Permalink
删除不必要的候选项提示。
Browse files Browse the repository at this point in the history
  • Loading branch information
Lantaio committed Nov 17, 2023
1 parent 9b33656 commit cac7d29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/joy_period_t.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ local function joy_period_translator(input, seg, env)
local history = context.commit_history
-- 如果 待翻译串是句点 并且 最近上屏的是数字,就...
if input == '.' and tonumber(history:latest_text()) then
yield(Candidate(input, seg.start, seg._end, '', '句号键or输拼音上屏中文句号'))
yield(Candidate(input, seg.start, seg._end, '.', ' 逗号键or输数字上屏英文句点'))
yield(Candidate(input, seg.start, seg._end, '', '句号键or输拼音'))
yield(Candidate(input, seg.start, seg._end, '.', ' 逗号键or输数字'))
end
end

Expand Down

0 comments on commit cac7d29

Please sign in to comment.