mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-24 20:45:56 +03:00
[GH-ISSUE #479] [BUG] Thai text corruption/garbling when scrolling #891
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#891
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 @veerapan-boo on GitHub (Jan 6, 2026).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/479
There is a visual corruption issue when scrolling content that contains Thai text or other complex scripts with combining marks. The characters become garbled and "shuffled" specifically during scroll operations (scrolling up or down).
Interestingly, the static rendering of the same text (when not scrolling) appears perfectly fine. The issue seems to be triggered only when the content position changes within a scrollable view.
Environment:
Prompt for test:
"ภาษาไทย คืออะไร อธิบายมาอย่างละเอียด ?"
@remorses commented on GitHub (Jan 6, 2026):
Does this only happen with latest version of opencode?
@veerapan-boo commented on GitHub (Jan 6, 2026):
@remorses It's been an issue since I started using OpenCode back in version 1.0.x. I think it’s been around for a long time.
@kommander commented on GitHub (Jan 6, 2026):
That is a grapheme width calculation issue, it's not getting the correct width for combining characters. Needs to be addressed.
@veerapan-boo commented on GitHub (Jan 6, 2026):
Thank you. I'll be waiting for when it’s ready to use.
@kommander commented on GitHub (Jan 8, 2026):
@veerapan-boo are you using tmux? And what terminal?
@veerapan-boo commented on GitHub (Jan 9, 2026):
@kommander I use both Warp Terminal and iTerm Terminal.
@kommander commented on GitHub (Jan 16, 2026):
This should be somewhat better (without tmux) in the latest opencode version. I have some more fixes coming.