aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
Diffstat (limited to 'builtin')
-rw-r--r--builtin/init.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/builtin/init.lua b/builtin/init.lua
index b3004468e..6b27cf76e 100644
--- a/builtin/init.lua
+++ b/builtin/init.lua
@@ -12,7 +12,11 @@ if core.print then
-- Override native print and use
-- terminal if that's turned on
function print(...)
- core_print(table.concat({...}, "\t"))
+ local n, t = select("#", ...), { ... }
+ for i = 1, n do
+ t[i] = tostring(t[i])
+ end
+ core_print(table.concat(t, "\t"))
end
core.print = nil -- don't pollute our namespace
end