# editor: Show relative line numbers for deleted rows \(\#42378\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 87d0401e647e1cf9a93d57ae5a993d3b1accb5c6

Requested commit: 87d0401e647e1cf9a93d57ae5a993d3b1accb5c6

Commit: 87d0401e647e1cf9a93d57ae5a993d3b1accb5c6

Tree: 77630936c3800d8fc5db4f4bb736af6970dd9181

Author: Finn Evers

Committer: GitHub

## Message

```
editor: Show relative line numbers for deleted rows (#42378)

Closes #42191

This PR adds support for relative line numbers in deleted hunks. Note
that this only applies in cases where there is a form of relative
numbering.

It also adds some tests for this functionality as well as missing tests
for other cases in line layouting that was previously untested.

Release Notes:

- Line numbers will now be shown in deleted git hunks if relative line
numbering is enabled
```

## Parents

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

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