Skip to content

Commit

Permalink
Don't call revise() for exit() (fixes timholy#327) (timholy#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
timholy authored Sep 1, 2019
1 parent 26a55b7 commit bd7d161
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Revise.jl
Original file line number Diff line number Diff line change
Expand Up @@ -945,8 +945,10 @@ end
# exit flag
break
end
# Process revisions
revise(backend)
# Process revisions, skipping `exit()` (issue #327)
if length(ast.args) < 2 || (ex = ast.args[2]; !isexpr(ex, :call)) || length(ex.args) != 1 || ex.args[1] != :exit
revise(backend)
end
# Now eval the input
REPL.eval_user_input(ast, backend)
end
Expand Down

0 comments on commit bd7d161

Please sign in to comment.