Skip to content

Handle wide characters in getBackspaceSequence#250

Open
rkonfj wants to merge 1 commit into
chzyer:mainfrom
rkonfj:main
Open

Handle wide characters in getBackspaceSequence#250
rkonfj wants to merge 1 commit into
chzyer:mainfrom
rkonfj:main

Conversation

@rkonfj

@rkonfj rkonfj commented Jul 8, 2025

Copy link
Copy Markdown
  • Output the correct number of backspace characters for each rune based on its display width (using runes.Width), ensuring proper cursor movement for wide/fullwidth characters.
  • Retain multi-line and line start/end handling logic.

Fixes #184

Output the correct number of backspace characters for
each rune based on its display width (using runes.Width),
ensuring proper cursor movement for wide/fullwidth characters.
Retain multi-line and line start/end handling logic.

Fixes chzyer#184
@rkonfj

rkonfj commented Jul 10, 2025

Copy link
Copy Markdown
Author

@chzyer Can this be merged?

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.

Cursor position is wrong when typing Chinese/Japanese/etc. characters and moving cursor

1 participant