summaryrefslogtreecommitdiff
path: root/server/src/vm
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-03-28 20:52:05 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-03-28 20:52:05 +0800
commitec1806e3b65623e2238bfc3bdb5fc53181074462 (patch)
treea3da0b864131893f7c4bb7448a8477e62c13701d /server/src/vm
parent112f456a87b1d9063d8983b7b81a181c7c7f6e07 (diff)
downloadlua-language-server-ec1806e3b65623e2238bfc3bdb5fc53181074462.zip
修正一个错误
Diffstat (limited to 'server/src/vm')
-rw-r--r--server/src/vm/vm.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/src/vm/vm.lua b/server/src/vm/vm.lua
index afe455d5..3b52e1f0 100644
--- a/server/src/vm/vm.lua
+++ b/server/src/vm/vm.lua
@@ -742,6 +742,7 @@ function mt:setOne(var, value)
self:setName(var[1], var, value)
elseif var.type == 'simple' then
local parent = self:getSimple(var, -2)
+ parent = self:getFirstInMulti(parent)
local key = var[#var]
self:instantSource(key)
key:set('simple', var)