Commit 4c41dc42 authored by Sehny's avatar Sehny

add dedup

parent 62a7219c
......@@ -241,6 +241,7 @@ impl<'a, W: Write> Editor<'a, W> {
if let Some(ref completer) = self.context.completer {
let mut completions = completer.completions(word.as_ref());
completions.sort();
completions.dedup();
(word, completions)
} else {
return Ok(());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment