Skip to content

Commit

Permalink
[REPL] Fix typo in using/import completion (#53273)
Browse files Browse the repository at this point in the history
Co-authored-by: Keno Fischer <keno@juliahub.com>
(cherry picked from commit b8540d1)
  • Loading branch information
Keno authored and KristofferC committed Mar 12, 2024
1 parent 8952861 commit 801885f
Show file tree
Hide file tree
Showing 2 changed files with 6 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 @@ -1052,7 +1052,7 @@ function complete_identifiers!(suggestions::Vector{Completion}, @nospecialize(ff
if ex === nothing
ex = arg
else
ex = Expr(:., out, QuoteNode(arg))
ex = Expr(:., ex, QuoteNode(arg))
end
else # invalid expression
ex = nothing
Expand Down
5 changes: 5 additions & 0 deletions stdlib/REPL/test/replcompletions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1968,6 +1968,11 @@ let s = "using .Issue52922.Inn"
@test res
@test "Inner1" in c
end
let s = "using .Issue52922.Inner1."
c, r, res = test_complete_context(s)
@test res
@test "Inner12" in c
end
let s = "using .Inner1.Inn"
c, r, res = test_complete_context(s, Issue52922)
@test res
Expand Down

0 comments on commit 801885f

Please sign in to comment.