Skip to content

Commit

Permalink
precompilepkgs: Handle when the terminal is very short (JuliaLang#55445)
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth authored Aug 11, 2024
1 parent 2e1235e commit d302272
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/precompilation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ function precompilepkgs(pkgs::Vector{String}=String[];
while !printloop_should_exit
lock(print_lock) do
term_size = Base.displaysize(io)::Tuple{Int,Int}
num_deps_show = term_size[1] - 3
num_deps_show = max(term_size[1] - 3, 2) # show at least 2 deps
pkg_queue_show = if !interrupted_or_done.set && length(pkg_queue) > num_deps_show
last(pkg_queue, num_deps_show)
else
Expand Down

0 comments on commit d302272

Please sign in to comment.