mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
avoid flickering of editor search field background on text typing (regression after commit ef82524)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user