mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-24 20:45:56 +03:00
[PR #658] fix(text-buffer): recalculate rope segment widths on tab width change #1474
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#1474
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/658
Author: @simonklee
Created: 2/9/2026
Status: 🔄 Open
Base:
main← Head:set-tab-width-rebuild📝 Commits (2)
955a6c2fix(text-buffer): recalculate rope segment widths on tab width changed496e11fix compile errors📊 Changes
2 files changed (+74 additions, -0 deletions)
View changed files
📝
packages/core/src/zig/tests/text-buffer_test.zig(+20 -0)📝
packages/core/src/zig/text-buffer.zig(+54 -0)📄 Description
When tab width changes, rebuild rope segments with recomputed chunk widths before updating tab_width so line metrics and total width stay consistent.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.