I have a file that is several hundred lines long.
With line 206 at the top of the window, and the cursor on line 217.
I F&R from "DARK_1" to "SCHEME_DARK", replace all.
The results: Line 185 at the top and the cursor on line 196.
This is odd - the the cursor is still 11 lines down from the top, but the scroll position doesn't make sense.
The text scrolled up 21 lines for no apparent reason.
This repros easily for me.
Try it with the attached file.