Consolidate calculation of editor's visible row range

We think this will fix a panic that was occuring in `paint_highlighted_range`
due to an out-of-bounds read into the line layouts. We think doing essentially the same
calculation in two different ways with floating point numbers might have
caused a different end row to be calculated in 2 different code paths.

Co-authored-by: Nathan Sobo <nathan@zed.dev>
864020463fMax Brunsfeld committed on 10/14/2022, 5:37:44 PMparentad6f9b2
1 file changedLine totals unavailable