Fix search result not applying new theme

Fix #12588, close #12672
This commit is contained in:
ozone10 2022-12-20 00:06:17 +01:00 committed by Don Ho
parent 4ae6736c99
commit caa4827e18
2 changed files with 2 additions and 1 deletions

View File

@ -349,7 +349,7 @@ public :
}
void updateFinderScintilla() {
if (_pFinder && _pFinder->isCreated() && _pFinder->isVisible())
if (_pFinder && _pFinder->isCreated())
{
_pFinder->setFinderStyle();
}

View File

@ -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);