Skip to content

Commit

Permalink
[REPL] Fix typo in using/import completion (JuliaLang#53273)
Browse files Browse the repository at this point in the history
Co-authored-by: Keno Fischer <[email protected]>
(cherry picked from commit b8540d1)
  • Loading branch information
Keno authored and Drvi committed Jun 7, 2024
1 parent aa58f68 commit 1c86fc0
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 1c86fc0

Please sign in to comment.