summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-19 19:53:11 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-19 19:53:11 +0800
commite6ff1b4ad03fdf0f07160abae1f32c99ea5fde26 (patch)
tree007f24907aa2a3b71dc1bac3807d4ab513e1b838
parenta470599b59837cbb1e12739db6352e5fb293ad83 (diff)
downloadlua-language-server-e6ff1b4ad03fdf0f07160abae1f32c99ea5fde26.zip
fix
-rw-r--r--script/core/noder.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/noder.lua b/script/core/noder.lua
index dd6ba22b..0ae48965 100644
--- a/script/core/noder.lua
+++ b/script/core/noder.lua
@@ -264,7 +264,7 @@ local function getNodeKey(source)
return getNodeKey(methodNode)
end
local key, node = getKey(source)
- if guide.isGlobal(source) then
+ if key and guide.isGlobal(source) then
return 'g:' .. key, nil
end
return key, node