Skip to content

Commit

Permalink
precompilepkgs: Handle when the terminal is very short (#55445)
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth authored and pull[bot] committed Aug 12, 2024
1 parent 9045dfa commit a75a336
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 a75a336

Please sign in to comment.