editor: Fix regression with folds and relative counting (#46658)

Closes #46516

Release Notes:

- Fixed a regression with relative line numbering that would occur with
folds present (preview only)
8ab49c325fFinn Evers committed on 1/12/2026, 11:58:31 PM· committed by GitHubparent8b4ab26
4 files changedLine totals unavailable