diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-01-27 18:57:07 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-01-27 18:57:07 +0800 |
commit | 4f1fa51222b75cef5a638945129429f380be0f85 (patch) | |
tree | dba6d80b0ffd4a00b43f33195c8a12b0fdb1ba46 | |
parent | 893207dafe89753a9fa5ec47e998afaaeb46ac82 (diff) | |
download | lua-language-server-4f1fa51222b75cef5a638945129429f380be0f85.zip |
暂时不要这个优化
-rw-r--r-- | script/core/matchkey.lua | 2 |
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 = {} |