summaryrefslogtreecommitdiff
path: root/script/vm/guideInterface.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/vm/guideInterface.lua')
-rw-r--r--script/vm/guideInterface.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/vm/guideInterface.lua b/script/vm/guideInterface.lua
index e59fc6e3..a07b6644 100644
--- a/script/vm/guideInterface.lua
+++ b/script/vm/guideInterface.lua
@@ -31,7 +31,7 @@ function m.require(args, index)
local uris = ws.findUrisByRequirePath(reqName)
for _, uri in ipairs(uris) do
if not files.eq(myUri, uri) then
- local ast = files.getAst(uri)
+ local ast = files.getState(uri)
if ast then
m.searchFileReturn(results, ast.ast, index)
end
@@ -51,7 +51,7 @@ function m.dofile(args, index)
local uris = ws.findUrisByFilePath(reqName)
for _, uri in ipairs(uris) do
if not files.eq(myUri, uri) then
- local ast = files.getAst(uri)
+ local ast = files.getState(uri)
if ast then
m.searchFileReturn(results, ast.ast, index)
end