summaryrefslogtreecommitdiff
path: root/server/src/matcher/vm.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-11 20:41:01 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-11 20:41:01 +0800
commit4534a804e161a03cd1a47f79bb924bf9b7df1f60 (patch)
treee0dffe261dcd3c3e7a5bdf4422827a1c59b00659 /server/src/matcher/vm.lua
parente8858e236690b579097ac095049bce4634182d25 (diff)
downloadlua-language-server-4534a804e161a03cd1a47f79bb924bf9b7df1f60.zip
修正bug
Diffstat (limited to 'server/src/matcher/vm.lua')
-rw-r--r--server/src/matcher/vm.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/matcher/vm.lua b/server/src/matcher/vm.lua
index d84f9062..19a844df 100644
--- a/server/src/matcher/vm.lua
+++ b/server/src/matcher/vm.lua
@@ -442,7 +442,7 @@ function mt:getSimple(simple, mode)
if tp == 'call' then
local args = self:unpackList(obj)
if object then
- table.insert(args, 1, object)
+ table.insert(args, 1, self:getValue(object))
end
-- 函数的返回值一定是list
value = self:call(value, args)