Skip to content

Commit baf9cbe

Browse files
don't show keymap @error for hints
Revert "don't show keymap `@error` for hints" This reverts commit dd5751f. Update LineEdit.jl
1 parent 4cdd864 commit baf9cbe

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

stdlib/REPL/src/LineEdit.jl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,13 @@ function check_for_hint(s::MIState)
382382
# Requires making space for them earlier in refresh_multi_line
383383
return clear_hint(st)
384384
end
385-
completions, partial, should_complete = complete_line(st.p.complete, st, s.active_module; hint = true)::Tuple{Vector{String},String,Bool}
385+
386+
completions, partial, should_complete = try
387+
complete_line(st.p.complete, st, s.active_module; hint = true)::Tuple{Vector{String},String,Bool}
388+
catch e
389+
@debug "error completing line for hint" e=e,catch_backtrace()
390+
return clear_hint(st)
391+
end
386392
isempty(completions) && return clear_hint(st)
387393
# Don't complete for single chars, given e.g. `x` completes to `xor`
388394
if length(partial) > 1 && should_complete

0 commit comments

Comments
 (0)