From 4be846e7eae0a33c3664817aeb0ed55317036e81 Mon Sep 17 00:00:00 2001 From: Scott Sumner <30118311+sasumner@users.noreply.github.com> Date: Tue, 21 Apr 2020 10:18:41 -0400 Subject: [PATCH] Fix bug of Mark clearing in selection mode Fix bug of Mark clearing nothing or too much when clearing marking in selected text. Fix #8150, close #8151 --- PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp index 59c7da267..27c3db65d 100644 --- a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp +++ b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp @@ -2844,7 +2844,7 @@ void FindReplaceDlg::clearMarks(const FindOption& opt) int endPosition = cr.cpMax; (*_ppEditView)->execute(SCI_SETINDICATORCURRENT, SCE_UNIVERSAL_FOUND_STYLE); - (*_ppEditView)->execute(SCI_INDICATORCLEARRANGE, startPosition, endPosition); + (*_ppEditView)->execute(SCI_INDICATORCLEARRANGE, startPosition, endPosition - startPosition); if (opt._doMarkLine) {