# Revert "Fix UTF-8 character boundary panic in DirectWrite text \.\.\. \(\#37767\)" \(\#38800\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 2b283e7c530a27ec0665a12fbbed2505e6c7156a

Requested commit: 2b283e7c530a27ec0665a12fbbed2505e6c7156a

Commit: 2b283e7c530a27ec0665a12fbbed2505e6c7156a

Tree: 2c0a9519c6ee527f924ec68f1321f82f0dfbce88

Author: Anthony Eid

Committer: GitHub

## Message

```
Revert "Fix UTF-8 character boundary panic in DirectWrite text ... (#37767)" (#38800)

This reverts commit 9e7302520ec93a96a9b275a817f083b96620148e.

I run into an infinite hang in Zed nightly and used instruments and
activity monitor to sample what was going on. The root cause seemed to
be the unwrap_unchecked introduced in reverted PR.

Release Notes:

- N/A
```

## Parents

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

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