# editor: Fix utf8 boundary panic in \`process_completion_for_edit\` \(\#39561\) · gitcafe/zed

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

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

Visibility: public

Requested revision: da82eec4cb00fde584a7a0153bea36193a4fe980

Requested commit: da82eec4cb00fde584a7a0153bea36193a4fe980

Commit: da82eec4cb00fde584a7a0153bea36193a4fe980

Tree: e11732155963f5e9ac851125f7c6c2e3e2f5c962

Author: Lukas Wirth

Committer: GitHub

## Message

```
editor: Fix utf8 boundary panic in `process_completion_for_edit` (#39561)

Fixes ZED-1WH

Release Notes:

- Fixed panic when requesting completions after a multibyte character
```

## Parents

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

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