From 2772baadf1522e63d165ad6af9e1255efb5f8622 Mon Sep 17 00:00:00 2001 From: albertlatacz Date: Fri, 2 Dec 2016 21:28:54 +0000 Subject: [PATCH] unique aggregate completer --- src/javarepl/completion/AggregateCompleter.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/javarepl/completion/AggregateCompleter.java b/src/javarepl/completion/AggregateCompleter.java index 190355c..0095081 100644 --- a/src/javarepl/completion/AggregateCompleter.java +++ b/src/javarepl/completion/AggregateCompleter.java @@ -26,6 +26,7 @@ public CompletionResult call(String expression) throws Exception { private Option> completeGroup(String expression) { return completers.map(complete(expression)) + .unique() .groupBy(CompletionResult::position) .sortBy(groupKey(Integer.class)) .reverse()