Skip to content

Commit 88c71dd

Browse files
REPL: Handle message from complete_methods! when max methods is hit (JuliaLang#57138)
1 parent f52c4ab commit 88c71dd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stdlib/REPL/src/REPLCompletions.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1097,6 +1097,9 @@ function complete_keyword_argument(partial::String, last_idx::Int, context_modul
10971097
last_word = partial[wordrange] # the word to complete
10981098
kwargs = Set{String}()
10991099
for m in methods
1100+
# if MAX_METHOD_COMPLETIONS is hit a single TextCompletion is return by complete_methods! with an explanation
1101+
# which can be ignored here
1102+
m isa TextCompletion && continue
11001103
m::MethodCompletion
11011104
possible_kwargs = Base.kwarg_decl(m.method)
11021105
current_kwarg_candidates = String[]

0 commit comments

Comments
 (0)