diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-12 16:27:04 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-12 16:27:04 +0800 |
commit | 8739fbf5197f28331713ffb264b7d77112272774 (patch) | |
tree | b3cc567be4091e3d2b1701bc8e21890134b8bb68 /server/src | |
parent | 9cae97d4433181150742b2bc946898c321d5bf08 (diff) | |
download | lua-language-server-8739fbf5197f28331713ffb264b7d77112272774.zip |
修正bug
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/matcher/vm.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server/src/matcher/vm.lua b/server/src/matcher/vm.lua index 928a954f..2c89b5e7 100644 --- a/server/src/matcher/vm.lua +++ b/server/src/matcher/vm.lua @@ -873,9 +873,10 @@ function mt:createEnvironment() value = self:setValue(field, value) end - -- 设置 _G 等于 _ENV + -- 设置 _G 使用 _ENV 的child local g = self:getField(envValue, '_G') - self:setValue(g, envValue) + local gValue = self:getValue(g) + gValue.child = envValue.child end local function compile(ast) |