Skip to content

Commit

Permalink
avoid returning empty completion when aborting to not have it inline …
Browse files Browse the repository at this point in the history
…complete directories (#3917)
  • Loading branch information
KristofferC committed Jul 5, 2024
1 parent 5907686 commit 138967f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/REPLExt/completions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ function complete_remote_package(partial; hint::Bool)
if is_julia_compat === nothing || is_julia_compat
push!(cmp, name)
# In hint mode the result is only used if there is a single matching entry
# so we can return no matches in case of more than one match
# so we abort the search
if hint && found_match
return String[]
return sort!(collect(cmp))
end
found_match = true
break
Expand Down

0 comments on commit 138967f

Please sign in to comment.