# ui: Fix LoadingLabel animation panic on CJK/emoji text \(\#45632\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 4efe93cfbfd09a33cdcf649dc3507b0476d6def3

Requested commit: 4efe93cfbfd09a33cdcf649dc3507b0476d6def3

Commit: 4efe93cfbfd09a33cdcf649dc3507b0476d6def3

Tree: c0982f7008771986a51fd69f46489e8efb4b552b

Author: MomentDerek

Committer: GitHub

## Message

```
ui: Fix LoadingLabel animation panic on CJK/emoji text (#45632)

This PR fixes a crash in LoadingLabel where the loading animation
progressively revealed text by slicing with byte offsets (.len()), which
can panic for UTF-8 multi-byte characters (e.g., CJK) and emoji.

Release Notes:

- Fix a crash in LoadingLabel’s loading animation when displaying CJK or
emoji text.
```

## Parents

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

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