be prepared to middle matching with one char prefix

This commit is contained in:
peter
2012-08-28 16:24:51 +02:00
parent b6f42f0385
commit f412b09ef8
24 changed files with 53 additions and 100 deletions
@@ -147,7 +147,7 @@ public class JavaMemberNameCompletionContributor extends CompletionContributor {
}
private static boolean hasStartMatches(Set<LookupElement> set, PrefixMatcher matcher) {
for (LookupElement lookupElement : set) {
if (hasStartMatches(matcher, lookupElement.getAllLookupStrings())) {
if (matcher.isStartMatch(lookupElement)) {
return true;
}
}