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:
parent
d20e11b93a
commit
4be846e7ea
@ -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…
Reference in New Issue
Block a user