Wait for the necessary buffer operations to arrive before attempting to set selections and scroll top.