summaryrefslogtreecommitdiff
path: root/script-beta
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-11-13 10:57:15 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-11-13 10:57:15 +0800
commit27034b3d99b31be96865e50d70a776fb3caac088 (patch)
tree1d4f7252bd2dd8cf2f24e7b73e4ab885a76b9eb7 /script-beta
parent4e52738f7a315085505ffdbefe9ce6722ec3965f (diff)
downloadlua-language-server-27034b3d99b31be96865e50d70a776fb3caac088.zip
暂存
Diffstat (limited to 'script-beta')
-rw-r--r--script-beta/core/completion.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script-beta/core/completion.lua b/script-beta/core/completion.lua
index 02c6673c..d2f53d8f 100644
--- a/script-beta/core/completion.lua
+++ b/script-beta/core/completion.lua
@@ -1129,8 +1129,8 @@ local function tryLuaDocBySource(ast, offset, source, results)
if not func or not func.args then
return
end
- for i, arg in ipairs(func.args) do
- if matchKey(source[1], arg[1]) then
+ for _, arg in ipairs(func.args) do
+ if arg[1] and matchKey(source[1], arg[1]) then
results[#results+1] = {
label = arg[1],
kind = define.CompletionItemKind.Interface,