When using feed_data() with hidden buffer, terminal refresh may arrive during may_restore_curbuf(), causing "last cursor" positions to change. Get the two "last cursor" positions in the same RPC call.