Skip to content

Commit

Permalink
unique aggregate completer
Browse files Browse the repository at this point in the history
  • Loading branch information
albertlatacz committed Dec 2, 2016
1 parent 8629f88 commit 2772baa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/javarepl/completion/AggregateCompleter.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public CompletionResult call(String expression) throws Exception {

private Option<Group<Integer, CompletionResult>> completeGroup(String expression) {
return completers.map(complete(expression))
.unique()
.groupBy(CompletionResult::position)
.sortBy(groupKey(Integer.class))
.reverse()
Expand Down

0 comments on commit 2772baa

Please sign in to comment.