mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 04:55:58 +03:00
[PR #734] [CLOSED] text-buffer-view: lineInfo byte-start tests #745
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#745
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/734
Author: @simonklee
Created: 2/24/2026
Status: ❌ Closed
Base:
main← Head:layout-scan-offsets📝 Commits (10+)
80713a4text-buffer-view: lineInfo byte-start tests32a7298utf8: add canonical layout scannerbde5a63make tests compile5f078c1text-buffer-segment: add bounded windowed layout cacheb3daaa8text-buffer-view: produce byte offsets in wrapc890eb2fix(tests): align text wrapping expectationsdc73c06view: add byte windows to virtual chunks2caa9b0edit-buffer: migrate word motion to layout spansb895151core: clarify byte/column line-info names5de682autf8: cleanup adapter APIs and types📊 Changes
35 files changed (+3391 additions, -2214 deletions)
View changed files
📝
packages/core/src/renderables/Code.test.ts(+3 -3)📝
packages/core/src/renderables/Text.test.ts(+3 -3)📝
packages/core/src/renderables/TextBufferRenderable.ts(+2 -2)📝
packages/core/src/renderables/__snapshots__/Diff.test.ts.snap(+6 -6)📝
packages/core/src/renderables/__snapshots__/Text.test.ts.snap(+9 -9)📝
packages/core/src/renderables/__snapshots__/TextTable.test.ts.snap(+4 -4)📝
packages/core/src/renderables/__tests__/LineNumberRenderable.test.ts(+3 -3)📝
packages/core/src/renderables/__tests__/Textarea.scroll.test.ts(+1 -1)📝
packages/core/src/renderables/__tests__/__snapshots__/Textarea.rendering.test.ts.snap(+6 -6)📝
packages/core/src/text-buffer-view.test.ts(+252 -51)📝
packages/core/src/types.ts(+3 -3)📝
packages/core/src/zig-structs.ts(+5 -5)📝
packages/core/src/zig.ts(+32 -12)📝
packages/core/src/zig/bench/text-chunk-graphemes_bench.zig(+78 -23)📝
packages/core/src/zig/bench/utf8_bench.zig(+127 -6)📝
packages/core/src/zig/buffer.zig(+88 -86)📝
packages/core/src/zig/edit-buffer.zig(+60 -37)📝
packages/core/src/zig/editor-view.zig(+3 -3)📝
packages/core/src/zig/lib.zig(+51 -70)📝
packages/core/src/zig/tests/editor-view_test.zig(+2 -2)...and 15 more files
📄 Description
Pin UTF-8 boundary, monotonicity, and determinism invariants for lineStarts across CJK, emoji, tab, and newline inputs. A fixed-seed corpus test catches regressions from future
wrap-offset changes.
These tests are expected to fail for now.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.