Fix scrollbar positions after fold/unfold (single or all).
Move cursor to the start of the document after a collapse all