Skip to content

text-buffer: widen chunk width past u16 - #1304

Open
simonklee wants to merge 2 commits into
mainfrom
ot-cursor-saturates
Open

text-buffer: widen chunk width past u16#1304
simonklee wants to merge 2 commits into
mainfrom
ot-cursor-saturates

Conversation

@simonklee

Copy link
Copy Markdown
Member

Lines longer than 65535 columns saturated chunk width at u16
max, so cursor, viewport, and rope weight drifted. Store width
as u32 so horizontal extent stays accurate for very long lines.

Lines longer than 65535 columns saturated chunk width at u16
max, so cursor, viewport, and rope weight drifted. Store width
as u32 so horizontal extent stays accurate for very long lines.
@simonklee simonklee self-assigned this Jul 30, 2026
Chunk width is already u32 after the widen. Remove bench clamps and
narrow casts that still assumed u16, and keep a single long-line
regression case past the old limit.
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