mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-11 21:03:05 +08:00
+ performance: remove test for set already, if indicator does not change
This commit is contained in:
parent
7c3b5d8797
commit
fa74aac413
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user