mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-24 20:45:56 +03:00
[GH-ISSUE #463] WrapBreak u16 overflows #123
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#123
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?
Originally created by @simonklee on GitHub (Jan 2, 2026).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/463
I noticed that
WrapBreakusesu16when trying to run the TextBuffer Wrapping benchmark for long lines. The benchmark inbench/text-buffer-view_bench.ziggenerates a 2MB single-line test case viagenerateLargeTextSingleLine(2 * 1024 * 1024), which overflows theu16fields:But in debug mode:
In ReleaseFast mode values are silently truncate, creating incorrect wrap positions.
I think a simple fix is to widen to a
u32:onMouseDownevents do not fire when clicking a text node #795