Fix relative line numbers in sticky headers (#45164)
Closes #42586
This includes a rewrite of `calculate_relative_line_numbers()`. Now it's
linear-time with respect to the number of rows displayed, instead of
linear time with respect to the number of rows displayed _plus_ the
distance to the base row.
Release Notes:
- Improved performance when using relative line numbers in large files
- Fixed relative line numbers not appearing in sticky headers
4ef5d2c814Andrew Farkas committed on 12/19/2025, 5:32:38 PM· committed by GitHubparentbfe3c66