From ed470325bf759c144b758e2b47735df2056cbe79 Mon Sep 17 00:00:00 2001 From: Rainer Kottenhoff Date: Fri, 5 Jan 2018 16:37:31 +0100 Subject: [PATCH] + fix: correct counting of found matches --- src/Edit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Edit.c b/src/Edit.c index 1d2718029..de86054f8 100644 --- a/src/Edit.c +++ b/src/Edit.c @@ -5607,7 +5607,7 @@ void EditMarkAll(HWND hwnd, char* pszFind, int flags, int rangeStart, int rangeE start = end; end = rangeEnd; - } while ((start < end) && (++iMarkOccurrencesCount < iMarkOccurrencesMaxCount)); + } while ((++iMarkOccurrencesCount < iMarkOccurrencesMaxCount) && (start < end)); } }