Ensure the visible part of the buffer is centered in the minimap