mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't display invalid items
This commit is contained in:
@@ -546,6 +546,8 @@ public class LookupImpl extends LightweightHint implements Lookup, Disposable {
|
||||
}
|
||||
|
||||
private boolean prefixMatches(final LookupElement item) {
|
||||
if (!item.isValid()) return false;
|
||||
|
||||
if (myAdditionalPrefix.length() == 0) return item.isPrefixMatched();
|
||||
|
||||
return item.getPrefixMatcher().cloneWithPrefix(itemPrefix(item)).prefixMatches(item);
|
||||
|
||||
Reference in New Issue
Block a user