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
pull/8192/head
Scott Sumner 5 years ago committed by Don HO
parent d20e11b93a
commit 4be846e7ea
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E

@ -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)
{

Loading…
Cancel
Save