We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f835c0a commit e5e7c27Copy full SHA for e5e7c27
script/vm/runner.lua
@@ -270,9 +270,11 @@ function mt:_lookIntoAction(action, topNode)
270
self:_lookIntoExp(value, topNode:copy())
271
end
272
if action.type == 'setlocal' then
273
- local newTopNode = self._callback(action, topNode)
274
- if newTopNode then
275
- topNode = newTopNode
+ if action.node == self._loc then
+ local newTopNode = self._callback(action, topNode)
+ if newTopNode then
276
+ topNode = newTopNode
277
+ end
278
279
elseif action.type == 'function' then
280
self:_launchBlock(action, topNode:copy())
0 commit comments