New Advmemo ReplaceAll Issue

V 8.2.4.0 partially fixed an issue reported with replace all that was reported here: http://www.tmssoftware.com/site/forum/forum_posts.asp?TID=6684&title=advmemo-replace-all-issue. The new code works properly when Wrap at end of File is false, but malfunctions when Wrap is enabled. 


To reproduce:

Connect an Advemo, AdvReplaceDialog and AdvMemoFindreplacedialog together. Add the following text to the memo:
A B1
A B2

Execute the replace dialog. Check "Wrap at the end of the file" and in the "FInd what" field, enter:
A B
In "Replace with:" enter: A BC
Position cursor at start of memo. Click Replace All

Result:
A BCC1
A B2

Expected Result:
A BC1
A BC2


This issue is now also fixed.