summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-01-27 18:57:07 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-01-27 18:57:07 +0800
commit4f1fa51222b75cef5a638945129429f380be0f85 (patch)
treedba6d80b0ffd4a00b43f33195c8a12b0fdb1ba46
parent893207dafe89753a9fa5ec47e998afaaeb46ac82 (diff)
downloadlua-language-server-4f1fa51222b75cef5a638945129429f380be0f85.zip
暂时不要这个优化
-rw-r--r--script/core/matchkey.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/matchkey.lua b/script/core/matchkey.lua
index 24e1ca41..b504fb1d 100644
--- a/script/core/matchkey.lua
+++ b/script/core/matchkey.lua
@@ -13,7 +13,7 @@ return function (input, other, fast)
if lMe == lOther:sub(1, #lMe) then
return true
end
- if (fast or #input == 1) and input:sub(1, 1) ~= other:sub(1, 1) then
+ if fast and input:sub(1, 1) ~= other:sub(1, 1) then
return false
end
local chars = {}