Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 14c02f81b93443df8bf20029c94f7b7f8fda9637 2 parents 2ac3d6e + a4a73d4
@ignacio authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/luanode/repl.lua
View
6 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
Please sign in to comment.
Something went wrong with that request. Please try again.