# agent_ui: Fix string slicing panic in message editor \(\#42068\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 113f0780b37481c782f84506df7efa055efd5fd0

Requested commit: 113f0780b37481c782f84506df7efa055efd5fd0

Commit: 113f0780b37481c782f84506df7efa055efd5fd0

Tree: 02a96cce4da040bd710e2464731d21337f49c8f8

Author: Lukas Wirth

Committer: GitHub

## Message

```
agent_ui: Fix string slicing panic in message editor (#42068)

Fixes ZED-302

Release Notes:

- Fixed a panic in agent message editor when using multibyte whitespace
characters
```

## Parents

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

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