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]>
  • Loading branch information
Keno and Keno authored Feb 11, 2024
1 parent 4be67e4 commit b8540d1
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 @@ -1136,7 +1136,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 @@ -2232,6 +2232,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 b8540d1

Please sign in to comment.