From caa4827e18ec37473a5f397deeac804aa0c5f9b7 Mon Sep 17 00:00:00 2001 From: ozone10 Date: Tue, 20 Dec 2022 00:06:17 +0100 Subject: [PATCH] Fix search result not applying new theme Fix #12588, close #12672 --- PowerEditor/src/ScintillaComponent/FindReplaceDlg.h | 2 +- PowerEditor/src/ScintillaComponent/ScintillaEditView.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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);