Skip to content

Commit

Permalink
show at least 2 deps
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Aug 10, 2024
1 parent 45521a6 commit ef87c0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/API.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1415,7 +1415,7 @@ function precompile(ctx::Context, pkgs::Vector{PackageSpec}; internal_call::Bool
while !printloop_should_exit
lock(print_lock) do
term_size = Base.displaysize(ctx.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 ef87c0a

Please sign in to comment.