fix(lua): cold_word_drop 修复路径分割符设置和增大候选迭代个数 (#1046)
This commit is contained in:
parent
ea74e40bec
commit
06074ecb7b
@ -47,7 +47,7 @@ function filter.func(input, env)
|
||||
end
|
||||
end
|
||||
|
||||
if #cands >= 80 then
|
||||
if #cands >= 180 then
|
||||
break
|
||||
end
|
||||
end
|
||||
|
@ -6,7 +6,7 @@ local function get_record_filername(record_type)
|
||||
local path_sep = "/"
|
||||
local user_data_dir = rime_api:get_user_data_dir()
|
||||
local user_distribute_name = rime_api:get_distribution_code_name()
|
||||
if user_distribute_name:lower():match("weasel") then path_sep = "\\" end
|
||||
if user_distribute_name:lower():match("weasel") then path_sep = [[\]] end
|
||||
if user_distribute_name:lower():match("ibus") then
|
||||
return string.format("%s/rime/lua/cold_word_records/%s_words.lua",
|
||||
os.getenv("HOME") .. "/.config/ibus",
|
||||
|
Loading…
Reference in New Issue
Block a user