diff --git a/components/synedit/synedit.pp b/components/synedit/synedit.pp index c233238552..6cdd60ca35 100644 --- a/components/synedit/synedit.pp +++ b/components/synedit/synedit.pp @@ -7208,9 +7208,7 @@ begin // user has been prompted and has requested to silently replace all // so turn off prompting if nAction = raReplaceAll then begin - if not bReplaceAll then begin - bReplaceAll := TRUE; - end; + bReplaceAll := True; bPrompt := False; end; // replace text