Skip to content

Commit 281df5d

Browse files
IanButterworthKristofferC
authored and
KristofferC
committed
REPL: Limit method lookup when completing kwargs (#56963)
(cherry picked from commit 10e20f1)
1 parent ab44c5d commit 281df5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/REPL/src/REPLCompletions.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ function complete_keyword_argument(partial, last_idx, context_module)
949949
kwargs_flag == 2 && return fail # one of the previous kwargs is invalid
950950

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

0 commit comments

Comments
 (0)