# edit predictions: Fix cursor popover edit preview panic \(\#24866\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 592e8fbffc495b5c1c79aa0843642b4f390eb972

Requested commit: 592e8fbffc495b5c1c79aa0843642b4f390eb972

Commit: 592e8fbffc495b5c1c79aa0843642b4f390eb972

Tree: 5c02659752056b2e18ebf865755393cb99c69721

Author: Agus Zubiaga

Committer: GitHub

## Message

```
edit predictions: Fix cursor popover edit preview panic (#24866)

Release Notes:

- Fixed a panic when displaying a whitespace-only line in the edit
prediction preview

---------

Co-authored-by: Antonio <antonio@zed.dev>
```

## Parents

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

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