summaryrefslogtreecommitdiff
path: root/script/core/definition.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/definition.lua')
-rw-r--r--script/core/definition.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/definition.lua b/script/core/definition.lua
index eadae30f..6c6b3df3 100644
--- a/script/core/definition.lua
+++ b/script/core/definition.lua
@@ -75,7 +75,7 @@ local function checkRequire(source, offset)
return nil
end
if libName == 'require' then
- return rpath.findUrisByRequirePath(literal)
+ return rpath.findUrisByRequirePath(guide.getUri(source), literal)
elseif libName == 'dofile'
or libName == 'loadfile' then
return workspace.findUrisByFilePath(literal)