# Make diagnostics with empty messages take up one line \(\#7456\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 4e519e3af7e7cfa5db68dceb5938025dbca3b61b

Requested commit: 4e519e3af7e7cfa5db68dceb5938025dbca3b61b

Commit: 4e519e3af7e7cfa5db68dceb5938025dbca3b61b

Tree: d0a621493bc8438402e16f55fde74a76fd682c00

Author: Max Brunsfeld

Committer: GitHub

## Message

```
Make diagnostics with empty messages take up one line (#7456)

When a supporting diagnostic had an empty message, we were accidentally
giving the corresponding block a height of zero lines.

Release Notes:

- Fixed an issue where an editors' lines were not laid out correctly
when showing certain diagnostics.

Co-authored-by: Marshall <marshall@zed.dev>
```

## Parents

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

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