summaryrefslogtreecommitdiff
path: root/script-beta/vm/eachDef.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-10-29 20:17:39 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-10-29 20:17:39 +0800
commite98483d89ac38463cf5b717a3b19861baf8f3e94 (patch)
treea250d58d95a1eac28334ba40e888f08e4e47e83a /script-beta/vm/eachDef.lua
parent0ad52ca53a9e9d24ee9a3451e24ce68f8bee0ff9 (diff)
downloadlua-language-server-e98483d89ac38463cf5b717a3b19861baf8f3e94.zip
整理代码
Diffstat (limited to 'script-beta/vm/eachDef.lua')
-rw-r--r--script-beta/vm/eachDef.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script-beta/vm/eachDef.lua b/script-beta/vm/eachDef.lua
index 8b3c6a9b..46d1887e 100644
--- a/script-beta/vm/eachDef.lua
+++ b/script-beta/vm/eachDef.lua
@@ -33,7 +33,7 @@ function vm.getDefs(source, deep)
or eachDef(source, deep)
vm.getCache('eachDefOfGlobal')[name] = cache
return cache
- elseif deep then
+ elseif not deep then
return eachDef(source, deep)
else
local cache = vm.getCache('eachDef')[source]