From c858a2ab5db6879ea11bf53ca18a9fd7b35822ef Mon Sep 17 00:00:00 2001 From: Scott Sumner <30118311+sasumner@users.noreply.github.com> Date: Mon, 25 Nov 2019 11:16:21 -0500 Subject: [PATCH] Make 'Purge for each search' respect 'In selection' for 'Mark All' op Fix #7663, close #7664 --- PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp index 87a1fda3..501fd027 100644 --- a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp +++ b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp @@ -1982,9 +1982,7 @@ int FindReplaceDlg::processRange(ProcessOperation op, FindReplaceInfo & findRepl if (op == ProcessMarkAll && colourStyleID == -1) //if marking, check if purging is needed { if (_env->_doPurge) { - pEditView->clearIndicator(SCE_UNIVERSAL_FOUND_STYLE); - if (_env->_doMarkLine) - pEditView->execute(SCI_MARKERDELETEALL, MARK_BOOKMARK); + clearMarks(*_env); } }