mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-24 20:45:56 +03:00
[PR #567] [MERGED] fix(core): adjust for graphemes width when calculating word boundaries #623
Labels
No labels
bug
core
documentation
feature
good first issue
help wanted
pull-request
question
react
solid
tmux
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentui#623
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/anomalyco/opentui/pull/567
Author: @CruelAddict
Created: 1/21/2026
Status: ✅ Merged
Merged: 1/24/2026
Merged by: @kommander
Base:
main← Head:word-boundary-detection-fix📝 Commits (6)
6aa0228fix(core): adjust for graphemes width when calculating word boundaries7e701feMerge branch 'main' into word-boundary-detection-fix4255bfbMerge branch 'main' into word-boundary-detection-fixf32b831fix(core): take break width into account when calculating boundary width8db0d27Merge branch 'main' into word-boundary-detection-fix866bf95Merge branch 'main' into word-boundary-detection-fix📊 Changes
6 files changed (+225 additions, -18 deletions)
View changed files
📝
packages/core/src/edit-buffer.test.ts(+39 -0)📝
packages/core/src/zig/edit-buffer.zig(+21 -5)📝
packages/core/src/zig/tests/edit-buffer_test.zig(+57 -0)📝
packages/core/src/zig/tests/text-buffer-view_test.zig(+66 -0)📝
packages/core/src/zig/text-buffer-iterators.zig(+38 -0)📝
packages/core/src/zig/text-buffer-view.zig(+4 -13)📄 Description
PR on issue #566
Added a helper calculating column delta and applied it to getPrevWordBoundary and getNextWordBoundary. The algorithm is basically reused from segment_callback
Disclaimer: I don't really know zig and this is my first time using it :)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.