Fix semicolon for term chunks, fixes #56

pull/66/head
Matti Pastell 2016-11-01 21:32:11 +02:00
parent 827934dfa6
commit 4bc881378b
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ function capture_output(expr, SandBox::Module, term, disp, plotlib,
rw, wr = redirect_stdout()
try
obj = eval(SandBox, expr)
if term || disp
if (term || disp) && typeof(expr) == Expr && expr.head != :toplevel
obj != nothing && display(obj)
elseif typeof(expr) == Symbol
display(obj)