diff --git a/lua/cold_word_drop/filter.lua b/lua/cold_word_drop/filter.lua index 35b3b10..7412ba0 100644 --- a/lua/cold_word_drop/filter.lua +++ b/lua/cold_word_drop/filter.lua @@ -47,7 +47,7 @@ function filter.func(input, env) end end - if #cands >= 80 then + if #cands >= 180 then break end end diff --git a/lua/cold_word_drop/processor.lua b/lua/cold_word_drop/processor.lua index 3bb304b..4ddb75c 100644 --- a/lua/cold_word_drop/processor.lua +++ b/lua/cold_word_drop/processor.lua @@ -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",