mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-24 20:45:56 +03:00
[PR #747] [CLOSED] fix(core): make lineInfo.lineStarts byte-based across wrap modes #1535
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#1535
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/747
Author: @simonklee
Created: 2/27/2026
Status: ❌ Closed
Base:
main← Head:fix-609📝 Commits (2)
57118abfix(core): make lineInfo.lineStarts byte-based across wrap modes25b8e5afixup! fix(core): make lineInfo.lineStarts byte-based across wrap modes📊 Changes
3 files changed (+376 additions, -21 deletions)
View changed files
📝
packages/core/src/text-buffer-view.test.ts(+68 -0)📝
packages/core/src/zig/tests/text-buffer-view_test.zig(+145 -0)📝
packages/core/src/zig/text-buffer-view.zig(+163 -21)📄 Description
lineInfo.lineStarts was emitted from display-column offsets in wrap/no-wrap paths,
which could split UTF-8 sequences at visual line boundaries for CJK/emoji text.
Track byte offsets alongside column offsets during virtual line construction and
write cached line starts from byte positions.
Close #609
Close #610
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.