IDEA-219563 "Go to Class" search results vary depending on the way you type them

GitOrigin-RevId: ac874aa81a1c302faa06c6644d6e196e78f3c20b
This commit is contained in:
Mikhail Sokolov
2019-08-02 20:04:09 +03:00
committed by intellij-monorepo-bot
parent d6c78d32ee
commit 986d61037f
@@ -670,8 +670,8 @@ public class SearchEverywhereUI extends BigPopupUI implements DataProvider, Quic
@Override
protected void textChanged(@NotNull DocumentEvent e) {
String newSearchString = getSearchPattern();
if (myEverywhereAutoSet && isEverywhere() &&
myNotFoundString != null && !newSearchString.contains(myNotFoundString)) {
boolean newPatternContainsPrevious = myNotFoundString != null && myNotFoundString.length() > 1 && newSearchString.contains(myNotFoundString);
if (myEverywhereAutoSet && isEverywhere() && !newPatternContainsPrevious) {
setEverywhereAuto(false);
}
else {