mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-24 20:45:56 +03:00
[PR #677] [MERGED] fix(buffer): make grapheme span clear ID-aware in set() #705
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#705
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/677
Author: @simonklee
Created: 2/12/2026
Status: ✅ Merged
Merged: 2/12/2026
Merged by: @simonklee
Base:
main← Head:fix-grapheme-clear📝 Commits (1)
0da5cdefix(buffer): make grapheme span clear ID-aware in set()📊 Changes
2 files changed (+52 additions, -5 deletions)
View changed files
📝
packages/core/src/zig/buffer.zig(+8 -5)📝
packages/core/src/zig/tests/buffer_test.zig(+44 -0)📄 Description
When we update currentRenderBuffer in place, set() can clear an existing grapheme span before writing new data. The old clearing logic wiped the whole computed span blindly. In one update order, that could erase a continuation cell that had just been written for a neighboring grapheme earlier in the same pass.
When that happesn you have a grapheme start cell present, but continuation missing.
This will then cause writeResolvedChars() to write an extra normal space where the continuation should have been skipped.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
getPallete()can block until timeout #960