8000 fix(input): remove double-width characters correctly by bestgopher · Pull Request #321 · console-rs/dialoguer · GitHub
[go: up one dir, main page]

Skip to content

fix(input): remove double-width characters correctly #321

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

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

Conversation

bestgopher
Copy link

Some characters are wide characters (such as Chinese), so when using the backspace key to delete characters, the width of the character should be taken into account for proper backward movement.

before: To remove a Chinese character, you need to press the backspace key twice.

2025-02-18.23.16.00.mov

after:

2025-02-18.23.14.49.mov

Some characters are wide characters (such as Chinese), so when using the backspace key to delete
characters, the width of the character should be taken into account for proper backward movement.
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
0