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

[Needs Review] Fix: textinput cursor for UTF-8 characters #311

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rm-dr
Copy link

@rm-dr rm-dr commented Jan 19, 2023

The current method for highlighting the first character of the placeholder corrupts multi-codepoint characters. This is easily fixed with the rune type, but would require many changes to be consistent.

I've applied a hacky fix below, but I'm pretty sure this isn't the best way to do this. Any advice?

This is the bug responsible for charmbracelet/gum#240.

@rm-dr rm-dr changed the title [WIP] Fix: textinput cursor for UTF-8 characters [Needs Review] Fix: textinput cursor for UTF-8 characters Jan 20, 2023
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

1 participant