Skip to content
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

Fix horizontal cursor movements when there are grapheme clusters #15

Merged
merged 3 commits into from
Jul 28, 2023

Conversation

Verseth
Copy link

@Verseth Verseth commented Jul 28, 2023

Currently the cursor goes haywire when the input contains grapheme clusters such as multi-codepoint emojis eg. πŸ‡΅πŸ‡±, πŸ™†πŸΏβ€β™‚οΈ

The same goes for deletion, backspace only deletes one rune, so to delete a flag emoji the backspace key has to be pressed twice.

This PR aims to resolve this issue by taking grapheme clusters into account in these scenarios.

@Verseth Verseth merged commit 890b7d4 into master Jul 28, 2023
8 checks passed
@Verseth Verseth deleted the feature/support_grapheme_clusters branch July 28, 2023 15:47
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.

1 participant