Skip to content

Commit eff2cb8

Browse files
IanButterworthfredrikekre
authored andcommitted
cancel pkg install prompt when ^D is entered (#2631)
(cherry picked from commit afdab65)
1 parent b7c6d08 commit eff2cb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/REPLMode/REPLMode.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ function try_prompt_pkg_add(pkgs::Vector{Symbol})
688688
end
689689
rethrow()
690690
end
691-
if lowercase(resp) in ["y", "yes"]
691+
if !isnothing(resp) && lowercase(resp) in ["y", "yes"]
692692
API.add(string.(available_pkgs))
693693
if length(available_pkgs) < length(pkgs)
694694
return false # declare that some pkgs couldn't be installed

0 commit comments

Comments
 (0)