diff --git a/PowerEditor/src/ScintillaComponent/FindReplaceDlg.h b/PowerEditor/src/ScintillaComponent/FindReplaceDlg.h index c1ffba367..9d038fcc8 100644 --- a/PowerEditor/src/ScintillaComponent/FindReplaceDlg.h +++ b/PowerEditor/src/ScintillaComponent/FindReplaceDlg.h @@ -349,7 +349,7 @@ public : } void updateFinderScintilla() { - if (_pFinder && _pFinder->isCreated() && _pFinder->isVisible()) + if (_pFinder && _pFinder->isCreated()) { _pFinder->setFinderStyle(); } diff --git a/PowerEditor/src/ScintillaComponent/ScintillaEditView.h b/PowerEditor/src/ScintillaComponent/ScintillaEditView.h index b6e0c7e53..fb849f619 100644 --- a/PowerEditor/src/ScintillaComponent/ScintillaEditView.h +++ b/PowerEditor/src/ScintillaComponent/ScintillaEditView.h @@ -942,6 +942,7 @@ protected: void setSearchResultLexer() { if (execute(SCI_GETLEXER) == SCLEX_SEARCHRESULT) { + makeStyle(L_SEARCHRESULT, nullptr); return; } execute(SCI_STYLESETEOLFILLED, SCE_SEARCHRESULT_FILE_HEADER, true);