Skip to content

fix: Make spans work with single width emojis #99

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

Muscraft
Copy link
Member

In #90, I made the mistake of thinking bytes and character widths were the same thing, and boy, was I very wrong. This PR addresses this problem and ensures that we are properly dealing with characters with different widths from the number of bytes they are made up of.

Verified

This commit was signed with the committer’s verified signature.
Muscraft Scott Schafer
@Muscraft Muscraft marked this pull request as ready for review March 12, 2024 21:43
@epage epage merged commit c0dc580 into rust-lang:master Mar 12, 2024
@Muscraft Muscraft deleted the fix-span-calculation branch March 12, 2024 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants