Skip to content

Commit b8540d1

Browse files
authored
[REPL] Fix typo in using/import completion (JuliaLang#53273)
Co-authored-by: Keno Fischer <[email protected]>
1 parent 4be67e4 commit b8540d1

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

stdlib/REPL/src/REPLCompletions.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1136,7 +1136,7 @@ function complete_identifiers!(suggestions::Vector{Completion}, @nospecialize(ff
11361136
if ex === nothing
11371137
ex = arg
11381138
else
1139-
ex = Expr(:., out, QuoteNode(arg))
1139+
ex = Expr(:., ex, QuoteNode(arg))
11401140
end
11411141
else # invalid expression
11421142
ex = nothing

stdlib/REPL/test/replcompletions.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2232,6 +2232,11 @@ let s = "using .Issue52922.Inn"
22322232
@test res
22332233
@test "Inner1" in c
22342234
end
2235+
let s = "using .Issue52922.Inner1."
2236+
c, r, res = test_complete_context(s)
2237+
@test res
2238+
@test "Inner12" in c
2239+
end
22352240
let s = "using .Inner1.Inn"
22362241
c, r, res = test_complete_context(s, Issue52922)
22372242
@test res

0 commit comments

Comments
 (0)