# editor: Fix relative line numbers breaking with nested folds \(\#47035\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/10a536b328e35a798f11373118b8c8e0649cbb88)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 10a536b328e35a798f11373118b8c8e0649cbb88

Requested commit: 10a536b328e35a798f11373118b8c8e0649cbb88

Commit: 10a536b328e35a798f11373118b8c8e0649cbb88

Tree: 233f32992e7bf9105bbf277cbd437ae97f72d70e

Author: Finn Evers

Committer: GitHub

## Message

```
editor: Fix relative line numbers breaking with nested folds (#47035)

Closes #46516

The previous fix only worked for non-nested folds, whereas this one also
considers nested folds properly. Also makes this more straightforward to
read.

Release Notes:

- Fixed an issue where relative line numbering would break with nested
folds.
```

## Parents

- [afaccf9c671e7ad00100b2bd13aea4a290237c95](https://git.cafe/gitcafe/zed/commit/afaccf9c671e7ad00100b2bd13aea4a290237c95?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/10a536b328e35a798f11373118b8c8e0649cbb88?format=markdown)
