summaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-04-17 14:13:27 +0800
committersumneko <sumneko@hotmail.com>2019-04-17 14:13:27 +0800
commit450362c7a55294581eca2cd5ab34ccd286ab08cb (patch)
treed42f2c096eb72dc8fe34fd812feabe4703f8225b /server/src
parentdfce55a48eb5f7f69bd64eba2b523b4e15e7e342 (diff)
downloadlua-language-server-450362c7a55294581eca2cd5ab34ccd286ab08cb.zip
修正函数递归时,没有重新创建局部变量的bug
Diffstat (limited to 'server/src')
-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 c9bc396c..ead87fda 100644
--- a/server/src/vm/vm.lua
+++ b/server/src/vm/vm.lua
@@ -1144,6 +1144,7 @@ end
function mt:createLocal(key, source, value)
local loc = self:bindLocal(source)
if loc then
+ self:saveLocal(key, loc)
return loc
end