# Fix panic\! caused by bad utf16 clipping \(\#7530\) · gitcafe/zed

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

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

Visibility: public

Requested revision: f55aba51ec770f412a61aee6c6b2c9d8174a6f81

Requested commit: f55aba51ec770f412a61aee6c6b2c9d8174a6f81

Commit: f55aba51ec770f412a61aee6c6b2c9d8174a6f81

Tree: 49e70e0ad9e3499566c17a45f418ac52cd391df5

Author: Conrad Irwin

Committer: GitHub

## Message

```
Fix panic! caused by bad utf16 clipping (#7530)

Release Notes:

- Fixed a panic in diagnostics with emojis

**or**

- N/A
```

## Parents

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

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