1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-29 22:53:01 +00:00
This commit is contained in:
kepler155c@gmail.com
2017-09-26 19:52:16 -04:00
parent f1517a294d
commit 4a608e11a2
3 changed files with 5 additions and 6 deletions

View File

@@ -6,10 +6,9 @@ local History = require('history')
local UI = require('ui')
local Util = require('util')
local sandboxEnv = Util.shallowCopy(getfenv(1))
setmetatable(sandboxEnv, { __index = _G })
local sandboxEnv = setmetatable(Util.shallowCopy(getfenv(1)), { __index = _G })
sandboxEnv.exit = function() Event.exitPullEvents() end
injector(sandboxEnv)
requireInjector(sandboxEnv)
multishell.setTitle(multishell.getCurrent(), 'Lua')
UI:configure('Lua', ...)