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
This commit is contained in:
Scott Sumner 2020-04-21 10:18:41 -04:00 committed by Don HO
parent d20e11b93a
commit 4be846e7ea
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E

View File

@ -2844,7 +2844,7 @@ void FindReplaceDlg::clearMarks(const FindOption& opt)
int endPosition = cr.cpMax; int endPosition = cr.cpMax;
(*_ppEditView)->execute(SCI_SETINDICATORCURRENT, SCE_UNIVERSAL_FOUND_STYLE); (*_ppEditView)->execute(SCI_SETINDICATORCURRENT, SCE_UNIVERSAL_FOUND_STYLE);
(*_ppEditView)->execute(SCI_INDICATORCLEARRANGE, startPosition, endPosition); (*_ppEditView)->execute(SCI_INDICATORCLEARRANGE, startPosition, endPosition - startPosition);
if (opt._doMarkLine) if (opt._doMarkLine)
{ {