Skip to content

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

Merged
Veykril merged 1 commit intozed-industries:mainfrom
MomentDerek:fix/moment/loadinglabel-panic
Jan 23, 2026
Merged

ui: Fix LoadingLabel animation panic on CJK/emoji text#45632
Veykril merged 1 commit intozed-industries:mainfrom
MomentDerek:fix/moment/loadinglabel-panic

Conversation

@MomentDerek
Copy link
Contributor

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.

@cla-bot
Copy link

cla-bot bot commented Dec 24, 2025

We require contributors to sign our Contributor License Agreement, and we don't have @MomentDerek on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@MomentDerek
Copy link
Contributor Author

@cla-bot check

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Dec 24, 2025
@cla-bot
Copy link

cla-bot bot commented Dec 24, 2025

The cla-bot has been summoned, and re-checked this pull request!

@Veykril Veykril self-assigned this Dec 27, 2025
@Veykril Veykril force-pushed the fix/moment/loadinglabel-panic branch from c6dfdda to 171fb1d Compare January 23, 2026 10:17
@Veykril Veykril enabled auto-merge (squash) January 23, 2026 10:17
@Veykril Veykril merged commit 4efe93c into zed-industries:main Jan 23, 2026
43 of 45 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants