summaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-28 11:22:27 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-28 11:22:27 +0800
commit8d63f26209a4e241bb30551d81ceb4ca246b228a (patch)
treeb8d63b6351e507a6601fcfab837c821ef6576910 /server/src
parentdaf8ce6d4186210608d53b72bb113af0617955d0 (diff)
downloadlua-language-server-8d63f26209a4e241bb30551d81ceb4ca246b228a.zip
修正报错
Diffstat (limited to 'server/src')
-rw-r--r--server/src/matcher/completion.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/matcher/completion.lua b/server/src/matcher/completion.lua
index 18f5c366..c5810d7c 100644
--- a/server/src/matcher/completion.lua
+++ b/server/src/matcher/completion.lua
@@ -127,7 +127,7 @@ local function searchFields(name, parent, object, callback)
goto CONTINUE
end
end
- if matchKey(name, key) then
+ if type(name) == 'string' and matchKey(name, key) then
callback(field)
end
::CONTINUE::