From 1a78e90f83d9f61313fef6b21e7ac92f43a4652c Mon Sep 17 00:00:00 2001 From: Xi__Han <96098265+XiHanQWQ@users.noreply.github.com> Date: Wed, 28 Jan 2026 16:07:09 +0800 Subject: [PATCH] =?UTF-8?q?fix(lua):=20=E5=BF=AB=E7=AC=A6=E5=8C=B9?= =?UTF-8?q?=E9=85=8D=E6=97=B6=E4=B8=8D=E8=BD=AC=E6=8D=A2=E5=A4=A7=E5=B0=8F?= =?UTF-8?q?=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/super_processor.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lua/super_processor.lua b/lua/super_processor.lua index 4037e85..4d54a23 100644 --- a/lua/super_processor.lua +++ b/lua/super_processor.lua @@ -208,7 +208,7 @@ function M.init(env) if ok_keys and keys then for _, key in ipairs(keys) do local v = config:get_string("quick_symbol_text/symkey/" .. key) - if v then env.qs_mapping[string.lower(tostring(key))] = v end + if v then env.qs_mapping[tostring(key)] = v end end end end @@ -273,7 +273,6 @@ function M.init(env) -- E. [QuickSymbol] 自动上屏逻辑 local qkey = string.match(input, env.qs_trigger) if qkey then - qkey = string.lower(qkey) local symbol = env.qs_mapping[qkey] if symbol and symbol ~= "" then if type(symbol)=="string" and symbol:lower()=="repeat" then @@ -308,7 +307,7 @@ local function handle_quick_symbol_intercept(key, env, ctx) local input = ctx.input or "" local matched = string.match(input, env.qs_trigger) if matched then - local k = string.lower(matched) + local k = matched if env.qs_mapping[k] and env.qs_mapping[k] ~= "" then return true -- Accepted end @@ -672,4 +671,4 @@ function M.func(key, env) return K_NOOP end -return M \ No newline at end of file +return M