Skip to content

Commit 91e2c17

Browse files
IanButterworthKristofferC
authored andcommitted
Missing package install prompt: Strip any rogue spaces from user input (#2675)
(cherry picked from commit d037cee)
1 parent ebac45f commit 91e2c17

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/REPLMode/REPLMode.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -692,6 +692,7 @@ function try_prompt_pkg_add(pkgs::Vector{Symbol})
692692
println(ctx.io)
693693
return false
694694
end
695+
resp = strip(resp)
695696
if lowercase(resp) in ["y", "yes"]
696697
API.add(string.(available_pkgs))
697698
if length(available_pkgs) < length(pkgs)

0 commit comments

Comments
 (0)