# editor: Translate utf16 to utf8 offsets in \`copy_highlight_json\` \(\#40981\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 16f7bd0a2e41b3556b6accefcde9d98e0b71c8e0

Requested commit: 16f7bd0a2e41b3556b6accefcde9d98e0b71c8e0

Commit: 16f7bd0a2e41b3556b6accefcde9d98e0b71c8e0

Tree: 37e1b71975ccd9340795b76881b8945b92a65767

Author: Lukas Wirth

Committer: GitHub

## Message

```
editor: Translate utf16 to utf8 offsets in `copy_highlight_json` (#40981)

Fixes ZED-2FM

Release Notes:

- Fixed panic in copy highlight json action
```

## Parents

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

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