Permalink
Browse files

Merge branch 'master' of git.inconcert:inconcert-6/luanode

  • Loading branch information...
2 parents 2ac3d6e + a4a73d4 commit 14c02f81b93443df8bf20029c94f7b7f8fda9637 @ignacio committed Aug 9, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/luanode/repl.lua
@@ -15,7 +15,7 @@ local keywords = {
'return', 'then', 'true', 'until', 'while'
}
--- Can overridden with custom print functions, such as `probe` or `eyes.js`
+-- Can be overridden with custom print functions, such as `probe` or `eyes.js`
writer = utils.inspect
---
@@ -201,9 +201,9 @@ function REPLServer:__init (prompt, stream, eval, useGlobal, ignoreUndefined)
end
else
if repl.useColors then
- repl.outputStream:write( console.getColor("lightred") .. results[1] .. console.getResetColor() .. "\n" )
+ repl.outputStream:write( console.getColor("lightred") .. utils.inspect(results[1]) .. console.getResetColor() .. "\n" )
else
- repl.outputStream:write( results[1] .. "\n" )
+ repl.outputStream:write( utils.inspect(results[1]) .. "\n" )
end
repl.rli:setPrompt(repl.prompt)
end

0 comments on commit 14c02f8

Please sign in to comment.