+ performance: remove test for set already, if indicator does not change

This commit is contained in:
Rainer Kottenhoff 2018-01-06 02:07:03 +01:00
parent 7c3b5d8797
commit fa74aac413

View File

@ -5577,11 +5577,8 @@ void EditMarkAll(HWND hwnd, char* pszFind, int flags, int rangeStart, int rangeE
if (iPos < 0)
break; // not found
// mark this match if not done before
if (!SciCall_IndicatorValueAt(INDIC_NP3_MARK_OCCURANCE, start) ||
!SciCall_IndicatorValueAt(INDIC_NP3_MARK_OCCURANCE, end)) {
SciCall_IndicatorFillRange(iPos, (end - start));
}
//// mark this match if not done before
SciCall_IndicatorFillRange(iPos, (end - start));
start = end;
end = rangeEnd;