Skip to content

Commit

Permalink
REPL: Limit method lookup when completing kwargs (#56963)
Browse files Browse the repository at this point in the history
(cherry picked from commit 10e20f1)
  • Loading branch information
IanButterworth authored and KristofferC committed Jan 13, 2025
1 parent ab44c5d commit 281df5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/REPL/src/REPLCompletions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@ function complete_keyword_argument(partial, last_idx, context_module)
kwargs_flag == 2 && return fail # one of the previous kwargs is invalid

methods = Completion[]
complete_methods!(methods, funct, Any[Vararg{Any}], kwargs_ex, -1, kwargs_flag == 1)
complete_methods!(methods, funct, Any[Vararg{Any}], kwargs_ex, shift ? -1 : MAX_METHOD_COMPLETIONS, kwargs_flag == 1)
# TODO: use args_ex instead of Any[Vararg{Any}] and only provide kwarg completion for
# method calls compatible with the current arguments.

Expand Down

0 comments on commit 281df5d

Please sign in to comment.