Skip to content

fix(tui): align input word segmentation with editor#5068

Merged
mitsuhiko merged 3 commits into
earendil-works:mainfrom
haoqixu:fix-align-input-word-segmentation
May 27, 2026
Merged

fix(tui): align input word segmentation with editor#5068
mitsuhiko merged 3 commits into
earendil-works:mainfrom
haoqixu:fix-align-input-word-segmentation

Conversation

@haoqixu

@haoqixu haoqixu commented May 27, 2026

Copy link
Copy Markdown
Contributor

This PR aligns input.ts's word segmentation with editor.ts to properly handle Unicode word boundaries.

@mitsuhiko

Copy link
Copy Markdown
Member

I wonder if we can refactor this thing a bit so that they share more code.

@haoqixu

haoqixu commented May 27, 2026

Copy link
Copy Markdown
Contributor Author

I wonder if we can refactor this thing a bit so that they share more code.

I've added a commit to extract the reusable word navigation logic into separate functions.

@mitsuhiko mitsuhiko merged commit 701801d into earendil-works:main May 27, 2026
1 check failed
hknet pushed a commit to hknet/pi-mono that referenced this pull request May 27, 2026
baiyuqing pushed a commit to baiyuqing/pi that referenced this pull request May 28, 2026
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.

2 participants