Skip to content

fix(text-buffer): recalculate rope segment widths on tab width change#658

Open
simonklee wants to merge 2 commits intoanomalyco:mainfrom
simonklee:set-tab-width-rebuild
Open

fix(text-buffer): recalculate rope segment widths on tab width change#658
simonklee wants to merge 2 commits intoanomalyco:mainfrom
simonklee:set-tab-width-rebuild

Conversation

@simonklee
Copy link
Member

@simonklee simonklee commented Feb 9, 2026

When tab width changes, rebuild rope segments with recomputed chunk widths before updating tab_width so line metrics and total width stay consistent.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 9, 2026

@opentui/core

npm i https://pkg.pr.new/@opentui/core@bce1590

@opentui/react

npm i https://pkg.pr.new/@opentui/react@bce1590

@opentui/solid

npm i https://pkg.pr.new/@opentui/solid@bce1590

@opentui/core-darwin-arm64

npm i https://pkg.pr.new/@opentui/core-darwin-arm64@bce1590

@opentui/core-darwin-x64

npm i https://pkg.pr.new/@opentui/core-darwin-x64@bce1590

@opentui/core-linux-arm64

npm i https://pkg.pr.new/@opentui/core-linux-arm64@bce1590

@opentui/core-linux-x64

npm i https://pkg.pr.new/@opentui/core-linux-x64@bce1590

@opentui/core-win32-arm64

npm i https://pkg.pr.new/@opentui/core-win32-arm64@bce1590

@opentui/core-win32-x64

npm i https://pkg.pr.new/@opentui/core-win32-x64@bce1590

commit: bce1590

@simonklee simonklee force-pushed the set-tab-width-rebuild branch from e0fe279 to 556ebf3 Compare February 10, 2026 20:11
@simonklee simonklee force-pushed the set-tab-width-rebuild branch 2 times, most recently from 0d7a216 to 5599ef5 Compare February 27, 2026 13:12
When tab width changes, rebuild rope segments with recomputed chunk widths
before updating tab_width so line metrics and total width stay consistent.
@simonklee simonklee force-pushed the set-tab-width-rebuild branch from 81ce877 to d496e11 Compare March 11, 2026 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant