Skip to content

Commit

Permalink
fix(lua): cold_word_drop 修复路径分割符设置和增大候选迭代个数 (#1046)
Browse files Browse the repository at this point in the history
  • Loading branch information
boomker authored Oct 9, 2024
1 parent ea74e40 commit 06074ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lua/cold_word_drop/filter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function filter.func(input, env)
end
end

if #cands >= 80 then
if #cands >= 180 then
break
end
end
Expand Down
2 changes: 1 addition & 1 deletion lua/cold_word_drop/processor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 06074ec

Please sign in to comment.