diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-07-19 19:53:11 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-07-19 19:53:11 +0800 |
commit | e6ff1b4ad03fdf0f07160abae1f32c99ea5fde26 (patch) | |
tree | 007f24907aa2a3b71dc1bac3807d4ab513e1b838 /script/core | |
parent | a470599b59837cbb1e12739db6352e5fb293ad83 (diff) | |
download | lua-language-server-e6ff1b4ad03fdf0f07160abae1f32c99ea5fde26.zip |
fix
Diffstat (limited to 'script/core')
-rw-r--r-- | script/core/noder.lua | 2 |
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 |