@@ -346,22 +346,22 @@ function complete_line(c::REPLCompletionProvider, s)
346
346
partial = beforecursor (s. input_buffer)
347
347
full = LineEdit. input_string (s)
348
348
ret, range, should_complete = completions (full, lastindex (partial))
349
- return map (completion_text, ret), partial[range], should_complete
349
+ return unique! ( map (completion_text, ret) ), partial[range], should_complete
350
350
end
351
351
352
352
function complete_line (c:: ShellCompletionProvider , s)
353
353
# First parse everything up to the current position
354
354
partial = beforecursor (s. input_buffer)
355
355
full = LineEdit. input_string (s)
356
356
ret, range, should_complete = shell_completions (full, lastindex (partial))
357
- return map (completion_text, ret), partial[range], should_complete
357
+ return unique! ( map (completion_text, ret) ), partial[range], should_complete
358
358
end
359
359
360
360
function complete_line (c:: LatexCompletions , s)
361
361
partial = beforecursor (LineEdit. buffer (s))
362
362
full = LineEdit. input_string (s)
363
363
ret, range, should_complete = bslash_completions (full, lastindex (partial))[2 ]
364
- return map (completion_text, ret), partial[range], should_complete
364
+ return unique! ( map (completion_text, ret) ), partial[range], should_complete
365
365
end
366
366
367
367
mutable struct REPLHistoryProvider <: HistoryProvider
0 commit comments