mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-100518 Goto popups: prefer items with exactly typed prefix
This commit is contained in:
@@ -1038,7 +1038,7 @@ public abstract class ChooseByNameBase {
|
||||
int match = shortName != null && matcher instanceof MinusculeMatcher
|
||||
? ((MinusculeMatcher)matcher).matchingDegree(shortName) : Integer.MIN_VALUE;
|
||||
int stats = StatisticsManager.getInstance().getUseCount(new StatisticsInfo(statContext, text));
|
||||
if (stats > best || stats == best && match > bestMatch) {
|
||||
if (match > bestMatch || match == bestMatch && stats > best) {
|
||||
best = stats;
|
||||
bestPosition = i;
|
||||
bestMatch = match;
|
||||
|
||||
Reference in New Issue
Block a user