Lua: timing

This commit is contained in:
kepler155c@gmail.com
2019-05-12 10:02:46 -04:00
parent bf870479c4
commit 43163053a5
3 changed files with 7 additions and 1 deletions

View File

@@ -77,6 +77,9 @@ function Util.tostring(pattern, ...)
end
if type(pattern) == 'string' then
if select('#', ...) == 0 then
return pattern
end
return _sformat(pattern, ...)
elseif type(pattern) == 'table' then
return serialize(pattern, term.current().getSize())