From 7191b207ca9d3e5a69d2dabaa4bd570be57b4864 Mon Sep 17 00:00:00 2001 From: Rainer Kottenhoff Date: Sat, 5 Jan 2019 09:44:50 +0100 Subject: [PATCH] + fix: wrong method call parameter --- src/Edit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Edit.c b/src/Edit.c index d268a847b..cdfa69c2f 100644 --- a/src/Edit.c +++ b/src/Edit.c @@ -6160,8 +6160,8 @@ bool EditReplace(HWND hwnd, LPCEDITFINDREPLACE lpefr) { DocPos _start = start; Globals.iReplacedOccurrences = 0; - DocPos const findLen = (DocPos)StringCchLenA(lpefr->szFind, FRMOD_NORM); - DocPos const iPos = _FindInTarget(hwnd, lpefr->szFind, findLen, (int)(lpefr->fuFlags), &start, &end, false, false); + DocPos const findLen = (DocPos)StringCchLenA(lpefr->szFind, 0); + DocPos const iPos = _FindInTarget(hwnd, lpefr->szFind, findLen, (int)(lpefr->fuFlags), &start, &end, false, FRMOD_NORM); // w/o selection, replacement string is put into current position // but this maybe not intended here