Avoid scrolling to cursor position in a non-visible editor