Fix scrollbar auto-show for cursors out of sight (#11244)

This PR fixes scrollbar auto-show feature when there're not visible
cursors. The intial behavior was broken in #11147.

The problem is that `selections` only contains visible selections, so
the `if` with `non_visible_cursors |= true` is only visited in rare edge
cases when we have at least part of the selection still visible on the
screen. But when we scroll far enough from the cursor,
`non_visible_cursors` keeps its default `false` value, which is
incorrect.

Release Notes:

- N/A
4b767697afAndrew Lygin committed on 5/1/2024, 6:57:10 PM· committed by GitHubparent3dc5d48
1 file changedLine totals unavailable