mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 21:15:52 +03:00
[PR #804] [MERGED] fix: out-of-bounds access in word wrap rollback with CJK text #1577
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#1577
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/804
Author: @simonklee
Created: 3/12/2026
Status: ✅ Merged
Merged: 3/13/2026
Merged by: @kommander
Base:
main← Head:overflow-bounds-check📝 Commits (5)
fe38a05fix: out-of-bounds access in word wrap rollback with CJK textfa1b29dadd regression558b0f6better regression96257d4reset last wrap bookmark0b7e06ccleanup tests📊 Changes
2 files changed (+44 additions, -1 deletions)
View changed files
📝
packages/core/src/zig/tests/word-wrap-editing_test.zig(+38 -0)📝
packages/core/src/zig/text-buffer-view.zig(+6 -1)📄 Description
last_wrap_chunk_count could become stale relative to the current virtual line's actual chunk count.
I added a regression + guard + fix to clear the staleness thing altogether.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.