Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/model/io/redirect.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ local function set_print(M)
if i ~= l then out = out .. '\t' end
end
origPrint(out)
M.output:push(out)
-- origPrint above has already emitted the output
-- (and the error, if there was any)
local _ = pcall(M.output.push, M.output, out)
end
_G.print = magicPrint
end
Expand Down
Loading