Skip to content

Commit

Permalink
fix #30234, don't resolve bindings when tab-completing using (#30254)
Browse files Browse the repository at this point in the history
(cherry picked from commit b482b09)
  • Loading branch information
JeffBezanson authored and KristofferC committed Feb 11, 2019
1 parent 3089b38 commit 6c5b585
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/REPL/src/REPLCompletions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ function completions(string, pos, context_module=Main)::Completions
end
end
end
ffunc = (mod,x)->(isdefined(mod, x) && isa(getfield(mod, x), Module))
ffunc = (mod,x)->(Base.isbindingresolved(mod, x) && isdefined(mod, x) && isa(getfield(mod, x), Module))
comp_keywords = false
end
startpos == 0 && (pos = -1)
Expand Down
2 changes: 2 additions & 0 deletions stdlib/REPL/test/replcompletions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ end
let s = "using REP"
c, r = test_complete(s)
@test count(isequal("REPL"), c) == 1
# issue #30234
@test !Base.isbindingresolved(Main, :tanh)
end

let s = "Comp"
Expand Down

0 comments on commit 6c5b585

Please sign in to comment.