Skip to content

Commit e6eb886

Browse files
authored
Update REPLCompletions.jl
1 parent 6786344 commit e6eb886

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
@@ -1031,7 +1031,7 @@ function complete_keyword_argument(partial, last_idx, context_module)
10311031
# isabstracttype would return naively return true for common constructor calls
10321032
# like Array, but the REPL's introspection here may know their Type{T}.
10331033
isconcretetype(funct) || return fail
1034-
complete_methods!(methods, funct, Any[Vararg{Any}], kwargs_ex, -1, arg_pos == :kwargs)
1034+
complete_methods!(methods, funct, Any[Vararg{Any}], kwargs_ex, -1, kwargs_flag == 1)
10351035
# TODO: use args_ex instead of Any[Vararg{Any}] and only provide kwarg completion for
10361036
# method calls compatible with the current arguments.
10371037

0 commit comments

Comments
 (0)