Skip to content

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

Draft
bestgopher wants to merge 1 commit intoconsole-rs:mainfrom
my-contributes:master
Draft

fix(input): remove double-width characters correctly#321
bestgopher wants to merge 1 commit intoconsole-rs:mainfrom
my-contributes:master

Conversation

@bestgopher
Copy link
Copy Markdown

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