diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-28 11:22:27 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-28 11:22:27 +0800 |
commit | 8d63f26209a4e241bb30551d81ceb4ca246b228a (patch) | |
tree | b8d63b6351e507a6601fcfab837c821ef6576910 /server/src | |
parent | daf8ce6d4186210608d53b72bb113af0617955d0 (diff) | |
download | lua-language-server-8d63f26209a4e241bb30551d81ceb4ca246b228a.zip |
修正报错
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/matcher/completion.lua | 2 |
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:: |