Skip to content

Commit dfc25dc

Browse files
IanButterworthKristofferC
authored andcommitted
REPL: Handle message from complete_methods! when max methods is hit (#57138)
(cherry picked from commit 88c71dd)
1 parent 7d1513e commit dfc25dc

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
@@ -1037,6 +1037,9 @@ function complete_keyword_argument(partial, last_idx, context_module)
10371037
last_word = partial[wordrange] # the word to complete
10381038
kwargs = Set{String}()
10391039
for m in methods
1040+
# if MAX_METHOD_COMPLETIONS is hit a single TextCompletion is return by complete_methods! with an explanation
1041+
# which can be ignored here
1042+
m isa TextCompletion && continue
10401043
m::MethodCompletion
10411044
possible_kwargs = Base.kwarg_decl(m.method)
10421045
current_kwarg_candidates = String[]

0 commit comments

Comments
 (0)