Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep a reference to the current REPL backend in a global variable #10567

Merged
merged 2 commits into from
Mar 19, 2015

Conversation

Keno
Copy link
Member

@Keno Keno commented Mar 19, 2015

A slightly more organized way to do #10416, making sure that the prompt
gets restored on an InterruptException, even if it is not currently evaluating
anything.

@JeffBezanson

A slightly more organized way to do #10416, making sure that the prompt
gets restored on an InterruptException, even if it is not currently evaluating
anything.
REPL.interactive_task.state == :waiting && isempty(Workqueue)
throwto(REPL.interactive_task, result)
if isa(result,InterruptException) && isdefined(Base,:active_repl_backend) &&
active_repl_backend.backend_task.state == :waiting && isempty(Workqueue) &&
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

end-of-line whitespace here

JeffBezanson added a commit that referenced this pull request Mar 19, 2015
Keep a reference to the current REPL backend in a global variable
@JeffBezanson JeffBezanson merged commit 7d66b1e into master Mar 19, 2015
@vtjnash vtjnash deleted the kf/replinterruptfix branch March 19, 2015 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants