Skip to content

fix(tui): leverage Intl.Segmenter for proper Unicode word boundaries#5022

Merged
mitsuhiko merged 1 commit into
earendil-works:mainfrom
haoqixu:fix-4972
May 26, 2026
Merged

fix(tui): leverage Intl.Segmenter for proper Unicode word boundaries#5022
mitsuhiko merged 1 commit into
earendil-works:mainfrom
haoqixu:fix-4972

Conversation

@haoqixu

@haoqixu haoqixu commented May 26, 2026

Copy link
Copy Markdown
Contributor

This PR leverages Intl.Segmenter to properly handle Unicode word boundaries and simplify editor's word movement.

Fixes #4972

@haoqixu

haoqixu commented May 26, 2026

Copy link
Copy Markdown
Contributor Author
screenrecording-2026-05-26_18-39-38.mp4

@mitsuhiko mitsuhiko merged commit 4402100 into earendil-works:main May 26, 2026
3 checks passed
@mitsuhiko

Copy link
Copy Markdown
Member

Thank you! This works after verififcation.

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.

TUI editor word movement does not stop at fullwidth Chinese punctuation

2 participants