Skip to content

editor: Preserve compound emojis#50082

Merged
SomeoneToIgnore merged 1 commit intozed-industries:mainfrom
marcocondrache:vixpciia
Mar 2, 2026
Merged

editor: Preserve compound emojis#50082
SomeoneToIgnore merged 1 commit intozed-industries:mainfrom
marcocondrache:vixpciia

Conversation

@marcocondrache
Copy link
Copy Markdown
Contributor

@marcocondrache marcocondrache commented Feb 25, 2026

Closes #45466

Emojis like 🧑‍✈️ are grapheme clusters formed using zero-width joiners and variation selectors. Iterating over the string by individual chars in highlight_invisibles breaks these clusters, even though they represent a single visible character.

Before you mark this PR as ready for review, make sure that you have:

  • Added a solid test coverage and/or screenshots from doing manual testing
  • Done a self-review taking into account security and performance aspects
  • Aligned any UI changes with the UI checklist

Release Notes:

  • Zed now supports compound emojis

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Feb 25, 2026
@github-actions github-actions bot added the community champion Issues filed by our amazing community champions! 🫶 label Feb 25, 2026
@marcocondrache
Copy link
Copy Markdown
Contributor Author

It seems not even github supports them in markdown previews 😄

Copy link
Copy Markdown
Contributor

@SomeoneToIgnore SomeoneToIgnore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Splendid, thank you so much!

@SomeoneToIgnore SomeoneToIgnore merged commit f0620c6 into zed-industries:main Mar 2, 2026
27 checks passed
tahayvr pushed a commit to tahayvr/zed that referenced this pull request Mar 4, 2026
Closes zed-industries#45466

Emojis like 🧑‍✈️ are grapheme clusters formed using zero-width joiners
and variation selectors. Iterating over the string by individual chars
in `highlight_invisibles` breaks these clusters, even though they
represent a single visible character.

Before you mark this PR as ready for review, make sure that you have:
- [ ] Added a solid test coverage and/or screenshots from doing manual
testing
- [x] Done a self-review taking into account security and performance
aspects
- [ ] Aligned any UI changes with the [UI
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)

Release Notes:

- Zed now supports compound emojis
wzulfikar pushed a commit to wzulfikar/zed that referenced this pull request Mar 4, 2026
Closes zed-industries#45466

Emojis like 🧑‍✈️ are grapheme clusters formed using zero-width joiners
and variation selectors. Iterating over the string by individual chars
in `highlight_invisibles` breaks these clusters, even though they
represent a single visible character.

Before you mark this PR as ready for review, make sure that you have:
- [ ] Added a solid test coverage and/or screenshots from doing manual
testing
- [x] Done a self-review taking into account security and performance
aspects
- [ ] Aligned any UI changes with the [UI
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)

Release Notes:

- Zed now supports compound emojis
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 community champion Issues filed by our amazing community champions! 🫶

Projects

None yet

Development

Successfully merging this pull request may close these issues.

compound emojis do not render correctly in buffer

2 participants