Skip to content

Commit ecfa806

Browse files
IanButterworthKristofferC
authored and
KristofferC
committed
REPL: Handle message from complete_methods! when max methods is hit (#57138)
(cherry picked from commit 88c71dd)
1 parent fcb138b commit ecfa806

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
@@ -961,6 +961,9 @@ function complete_keyword_argument(partial, last_idx, context_module)
961961
last_word = partial[wordrange] # the word to complete
962962
kwargs = Set{String}()
963963
for m in methods
964+
# if MAX_METHOD_COMPLETIONS is hit a single TextCompletion is return by complete_methods! with an explanation
965+
# which can be ignored here
966+
m isa TextCompletion && continue
964967
m::MethodCompletion
965968
possible_kwargs = Base.kwarg_decl(m.method)
966969
current_kwarg_candidates = String[]

0 commit comments

Comments
 (0)