Skip to content

Commit 10e20f1

Browse files
REPL: Limit method lookup when completing kwargs (#56963)
1 parent 4750dc2 commit 10e20f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/REPL/src/REPLCompletions.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1077,7 +1077,7 @@ function complete_keyword_argument(partial::String, last_idx::Int, context_modul
10771077
kwargs_flag == 2 && return fail # one of the previous kwargs is invalid
10781078

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

0 commit comments

Comments
 (0)