Skip to content

Commit

Permalink
use newest world callback on_done (#21027)
Browse files Browse the repository at this point in the history
* use newest world callback on_done

* use QuoteNode to prevent parameters being expanded

* also quote on_done
  • Loading branch information
randy3k authored and KristofferC committed Mar 18, 2017
1 parent e097911 commit 93cddfc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion base/LineEdit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1577,7 +1577,14 @@ function run_interface(terminal, m::ModalInterface)
@static if is_unix(); ccall(:jl_repl_raise_sigtstp, Cint, ()); end
buf, ok, suspend = prompt!(terminal, m, s)
end
mode(state(s, s.current_mode)).on_done(s, buf, ok)
eval(Main,
Expr(:body,
Expr(:return,
Expr(:call,
QuoteNode(mode(state(s, s.current_mode)).on_done),
QuoteNode(s),
QuoteNode(buf),
QuoteNode(ok)))))
end
end

Expand Down

0 comments on commit 93cddfc

Please sign in to comment.