diff --git a/src/Acorn.jl b/src/Acorn.jl index 0e22691..7f3692c 100644 --- a/src/Acorn.jl +++ b/src/Acorn.jl @@ -24,14 +24,13 @@ include("cmds/echo.jl") function acorn(filename::String; rel::Bool=true) ed = Editor() - #rel && (filename = abspath(filename)) - editorOpen(ed, filename) setStatusMessage(ed, "HELP: ctrl-p: command mode | ctrl-q: quit | ctrl-s: save") Base.Terminals.raw!(ed.term, true) + try while !ed.quit refreshScreen(ed) @@ -39,9 +38,10 @@ function acorn(filename::String; rel::Bool=true) end catch ex editorQuit(ed, force=true) - throw(ex) + rethrow(ex) # Don't reset stacktrace end + Base.Terminals.raw!(ed.term, false) return nothing