editor path issues

This commit is contained in:
kepler155c@gmail.com
2020-04-14 14:12:44 -06:00
parent ef6cde3013
commit 6b429a26e4
2 changed files with 36 additions and 42 deletions

View File

@@ -134,15 +134,17 @@ end
recTerm = multishell.term
for key, func in pairs(oldTerm) do
recTerm[key] = function(...)
local result = { func(...) }
if type(func) == 'function' then
recTerm[key] = function(...)
local result = { func(...) }
if callCount == 0 then
os.queueEvent('capture_frame')
if callCount == 0 then
os.queueEvent('capture_frame')
end
callCount = callCount + 1
curCalls[callCount] = { key, ... }
return unpack(result)
end
callCount = callCount + 1
curCalls[callCount] = { key, ... }
return unpack(result)
end
end