# editor: Fix panic when syncing empty selections \(\#39047\) · gitcafe/zed

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

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

Visibility: public

Requested revision: cc85a48de59cfcf6ef89c83caffdfe7e15f86a1c

Requested commit: cc85a48de59cfcf6ef89c83caffdfe7e15f86a1c

Commit: cc85a48de59cfcf6ef89c83caffdfe7e15f86a1c

Tree: 92249f69eba82e3e7791cab133caa1c2aca84674

Author: Lukas Wirth

Committer: GitHub

## Message

```
editor: Fix panic when syncing empty selections (#39047)

Fixes ZED-1KF

Release Notes:

- Fixed commit modal panicking in specific scenario
```

## Parents

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

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