We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eff2cb8 commit dfd1099Copy full SHA for dfd1099
src/REPLMode/REPLMode.jl
@@ -682,13 +682,17 @@ function try_prompt_pkg_add(pkgs::Vector{Symbol})
682
printstyled(ctx.io, " └ "; color=:green)
683
Base.prompt(stdin, ctx.io, "(y/n)", default = "y")
684
catch err
685
- if err isa InterruptException
+ if err isa InterruptException # if ^C is entered
686
println(ctx.io)
687
return false
688
end
689
rethrow()
690
691
- if !isnothing(resp) && lowercase(resp) in ["y", "yes"]
+ if isnothing(resp) # if ^D is entered
692
+ println(ctx.io)
693
+ return false
694
+ end
695
+ if lowercase(resp) in ["y", "yes"]
696
API.add(string.(available_pkgs))
697
if length(available_pkgs) < length(pkgs)
698
return false # declare that some pkgs couldn't be installed
0 commit comments