Skip to content

Commit 740d052

Browse files
authored
make sure completions are unique
See JuliaLang/julia#28694
1 parent 81d98a3 commit 740d052

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/handlers.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ function complete_request(socket, msg)
146146
comps_, positions = REPLCompletions.completions(code[codestart:end], cursorpos-codestart+1)
147147
end
148148
@static if isdefined(REPLCompletions, :completion_text)
149-
comps = REPLCompletions.completion_text.(comps_) # julia#26930
149+
comps = unique!(REPLCompletions.completion_text.(comps_)) # julia#26930
150150
else
151151
comps = comps_
152152
end

0 commit comments

Comments
 (0)