summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-01-27 18:28:16 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-01-27 18:28:16 +0800
commit7f9a7b7a8027e94fcb0a3ece3b8de1bf75d20020 (patch)
tree463a603a783197a751d08829035514dfbc164d96
parent12591b4a9b219c06f2340d9bfd6d589777bda09b (diff)
downloadlua-language-server-7f9a7b7a8027e94fcb0a3ece3b8de1bf75d20020.zip
ignore case
-rw-r--r--script/core/completion.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/core/completion.lua b/script/core/completion.lua
index dfc01391..61d44663 100644
--- a/script/core/completion.lua
+++ b/script/core/completion.lua
@@ -1709,7 +1709,7 @@ local function makeCache(uri, offset, results)
end
cache.results = results
cache.offset = offset
- cache.word = word
+ cache.word = word:lower()
end
local function getCache(uri, offset)
@@ -1722,7 +1722,7 @@ local function getCache(uri, offset)
if not word then
return nil
end
- if word:sub(1, #cache.word) ~= cache.word then
+ if word:sub(1, #cache.word):lower() ~= cache.word then
return nil
end