avoid flickering of editor search field background on text typing (regression after commit ef82524)

This commit is contained in:
Dmitry Batrak
2015-12-04 10:51:05 +03:00
parent 2476c54ba5
commit 8a908f16f3
@@ -160,7 +160,7 @@ public class EditorSearchSession implements SearchSession,
myFindModel.setWholeWordsOnly(false);
}
updateUIWithFindModel();
clearSearchResults();
mySearchResults.clear();
updateResults(true);
FindUtil.updateFindInFileModel(getProject(), myFindModel);
}
@@ -236,6 +236,7 @@ public class EditorSearchSession implements SearchSession,
@Override
public void searchResultsUpdated(SearchResults sr) {
if (sr.getFindModel() == null) return;
if (myComponent.getSearchTextComponent().getText().isEmpty()) {
updateUIWithEmptyResults();
} else {