From fa74aac4133545c430544412cebd5a8a98809277 Mon Sep 17 00:00:00 2001 From: Rainer Kottenhoff Date: Sat, 6 Jan 2018 02:07:03 +0100 Subject: [PATCH] + performance: remove test for set already, if indicator does not change --- src/Edit.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Edit.c b/src/Edit.c index 334e94367..62387d3e0 100644 --- a/src/Edit.c +++ b/src/Edit.c @@ -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;