Skip to content

Commit f66a1cf

Browse files
authored
fix kwarg limit method backport
1 parent 0aa7b95 commit f66a1cf

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
@@ -1025,7 +1025,7 @@ function complete_keyword_argument(partial, last_idx, context_module)
10251025
kwargs_flag == 2 && return fail # one of the previous kwargs is invalid
10261026

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

0 commit comments

Comments
 (0)