let the lookup pretend to know about elements' matchers, not elements themselves

This commit is contained in:
peter
2011-04-18 14:52:41 +02:00
parent 2be0d770cb
commit 10646035be
10 changed files with 36 additions and 28 deletions
@@ -74,9 +74,7 @@ public class JavaCharFilter extends CharFilter {
if (c == ',' && o instanceof PsiVariable) {
int lookupStart = ((LookupImpl)lookup).getLookupStart();
String name = ((PsiVariable)o).getName();
if (lookupStart >= 0 &&
name != null &&
name.equals(item.getPrefixMatcher().getPrefix() + ((LookupImpl)lookup).getAdditionalPrefix())) {
if (lookupStart >= 0 && name != null && name.equals(lookup.itemPattern(item))) {
return Result.HIDE_LOOKUP;
}
}