mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 04:55:58 +03:00
[PR #656] [MERGED] text-buffer: encapsulate internals behind accessors #1470
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#1470
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/656
Author: @simonklee
Created: 2/9/2026
Status: ✅ Merged
Merged: 2/10/2026
Merged by: @kommander
Base:
main← Head:pr1-core-encapsulation📝 Commits (2)
2f5ef1atext-buffer: encapsulate internals behind accessor API2a3fb1cMerge branch 'main' into pr1-core-encapsulation📊 Changes
12 files changed (+483 additions, -406 deletions)
View changed files
📝
packages/core/src/zig/buffer.zig(+8 -7)📝
packages/core/src/zig/edit-buffer.zig(+59 -59)📝
packages/core/src/zig/editor-view.zig(+18 -18)📝
packages/core/src/zig/lib.zig(+8 -8)📝
packages/core/src/zig/tests/edit-buffer_test.zig(+24 -24)📝
packages/core/src/zig/tests/editor-view_test.zig(+2 -2)📝
packages/core/src/zig/tests/segment-merge.test.zig(+1 -1)📝
packages/core/src/zig/tests/text-buffer-iterators_test.zig(+90 -90)📝
packages/core/src/zig/tests/text-buffer-view_test.zig(+7 -7)📝
packages/core/src/zig/tests/text-buffer_test.zig(+132 -132)📝
packages/core/src/zig/text-buffer-view.zig(+21 -29)📝
packages/core/src/zig/text-buffer.zig(+113 -29)📄 Description
Stop view, render, and edit layers from reaching into rope, mem_registry,
allocator, tab_width, and width_method fields directly. All external access
now goes through accessor methods.
This decouples the read/render paths from the rope data structure, which is
the prerequisite for making UnifiedTextBuffer generic over backend type.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.