# Fix bad unicode calculations in do_completion \(\#28259\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 448db20eaa87ed3ccd66e40b18cd2b784cc912ac

Requested commit: 448db20eaa87ed3ccd66e40b18cd2b784cc912ac

Commit: 448db20eaa87ed3ccd66e40b18cd2b784cc912ac

Tree: 1ca3d6cb62395059d4add7d893962c0a42ea0c3a

Author: Conrad Irwin

Committer: GitHub

## Message

```
Fix bad unicode calculations in do_completion (#28259)

Co-authored-by: João Marcos <marcospb19@hotmail.com>

Release Notes:

- Fixed a panic with completions around non-ASCII code

---------

Co-authored-by: João Marcos <marcospb19@hotmail.com>
```

## Parents

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

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