From 1c4157109fa258d207d52aa00cdabeb12e435781 Mon Sep 17 00:00:00 2001 From: Scott Sumner <30118311+sasumner@users.noreply.github.com> Date: Wed, 11 Dec 2019 10:42:34 -0500 Subject: [PATCH] Eliminate garbage displaying in Find-result fold margin Fix #6268, close #7721 --- PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp index 501fd027..3976b618 100644 --- a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp +++ b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp @@ -3328,6 +3328,10 @@ void Finder::setFinderStyle() } _scintView.execute(SCI_COLOURISE, 0, -1); + + // finder fold style follows user preference but use box when user selects none + ScintillaViewParams& svp = (ScintillaViewParams&)NppParameters::getInstance().getSVP(); + _scintView.setMakerStyle(svp._folderStyle == FOLDER_STYLE_NONE ? FOLDER_STYLE_BOX : svp._folderStyle); } INT_PTR CALLBACK Finder::run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam)