farewell green items in completion
[idea/community.git] / platform / lang-impl / src / com / intellij / codeInsight / completion / CompletionLookupArranger.java
index cb4e49160db1f6d07eda999ff916b374f15ac6ee..e7a9e1b5aa14cb5a5133506a587303e0c50b74e8 100644 (file)
@@ -86,7 +86,7 @@ public class CompletionLookupArranger extends LookupArranger {
     CompletionLocation myLocation = new CompletionLocation(indicator.getParameters());
     final StatisticsInfo main = StatisticsManager.serialize(CompletionService.STATISTICS_KEY, item, myLocation);
     final List<LookupElement> items = lookupImpl.getItems();
-    final int count = Math.min(lookupImpl.getPreferredItemsCount(), lookupImpl.getList().getSelectedIndex());
+    final int count = Math.min(3, lookupImpl.getList().getSelectedIndex());
 
     final List<StatisticsInfo> ignored = new ArrayList<StatisticsInfo>();
     for (int i = 0; i < count; i++) {