It works but the problem still here with some cases.
If the low left corner of the selection is on the text and the low right corner on “virtual space” and Find&Replace operation MUST find and replace at least one time. You may see that the selection is changed.
I cannot reproduce this case. Can you email me at email@example.com a screenshot or a sample file to explain the details? Thanks!