mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Reset speed search comparator even if pattern is empty
GitOrigin-RevId: b7e1a3bdaae6b64bc398c3dbc7fca08b2832b9b3
This commit is contained in:
committed by
intellij-monorepo-bot
parent
5132fd7a74
commit
ac95031403
@@ -253,7 +253,7 @@ public abstract class SpeedSearchBase<Comp extends JComponent> extends SpeedSear
|
||||
}
|
||||
|
||||
protected boolean compare(@NotNull String text, @Nullable String pattern) {
|
||||
return !StringUtil.isEmpty(pattern) && myComparator.matchingFragments(pattern, text) != null;
|
||||
return pattern != null && myComparator.matchingFragments(pattern, text) != null;
|
||||
}
|
||||
|
||||
public SpeedSearchComparator getComparator() {
|
||||
|
||||
Reference in New Issue
Block a user