diff --git a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp index 59c7da26..27c3db65 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) {