summaryrefslogtreecommitdiff
path: root/script-beta/vm/eachDef.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script-beta/vm/eachDef.lua')
-rw-r--r--script-beta/vm/eachDef.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/script-beta/vm/eachDef.lua b/script-beta/vm/eachDef.lua
index 75c29526..e30e3b51 100644
--- a/script-beta/vm/eachDef.lua
+++ b/script-beta/vm/eachDef.lua
@@ -2,7 +2,11 @@ local vm = require 'vm.vm'
local guide = require 'parser.guide'
local function eachDef(source)
+ local lib = vm.getLibrary(source)
local results = guide.requestDefinition(source)
+ if lib then
+ results[#results+1] = lib
+ end
return results
end