# editor: Fix panic when restoring empty selections on undo/redo \(\#59372\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 969c6c719ca10102903590e15601c55b57a8838e

Requested commit: 969c6c719ca10102903590e15601c55b57a8838e

Commit: 969c6c719ca10102903590e15601c55b57a8838e

Tree: 2a2e25fd5bd0012c73e36469365f061a5864def6

Author: Neel

Committer: GitHub

## Message

```
editor: Fix panic when restoring empty selections on undo/redo (#59372)

Closes FR-81.

Also updates the error log, as the linked issue is closed.

Release Notes:

- Fixed panic when restoring empty selections on undo/redo
```

## Parents

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

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