From 06074ecb7b6d39a2fb9dbe83c9fa2bd9e5472991 Mon Sep 17 00:00:00 2001 From: Shingo Date: Wed, 9 Oct 2024 11:09:04 +0800 Subject: [PATCH] =?UTF-8?q?fix(lua):=20cold=5Fword=5Fdrop=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E8=B7=AF=E5=BE=84=E5=88=86=E5=89=B2=E7=AC=A6=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E5=92=8C=E5=A2=9E=E5=A4=A7=E5=80=99=E9=80=89=E8=BF=AD?= =?UTF-8?q?=E4=BB=A3=E4=B8=AA=E6=95=B0=20(#1046)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/cold_word_drop/filter.lua | 2 +- lua/cold_word_drop/processor.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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",