Refactor JumpToLastCursorPosition.