Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Autoscroll to cursor position after folding or unfolding #16092
When folding or unfolding large blocks, it is possible to move the cursor off screen. Whenever this happens it is annoying and confusing, so this PR changes all code paths that create or destroy folds to autoscroll to the cursor position afterwards.
There were several different fold/unfold code paths, so I decided to weave simple autoscroll assertions into the existing tests.