[PR #319] [MERGED] fix word wrapping with CJK and at wrap/chunk boundaries #1229

Closed
opened 2026-03-14 09:25:22 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opentui/pull/319
Author: @kommander
Created: 11/16/2025
Status: Merged
Merged: 11/17/2025
Merged by: @kommander

Base: mainHead: debug-cjk-linebreak-bytes


📝 Commits (10+)

📊 Changes

5 files changed (+392 additions, -24 deletions)

View changed files

📝 packages/core/src/zig/buffer.zig (+17 -11)
📝 packages/core/src/zig/tests/editor-view_test.zig (+132 -0)
📝 packages/core/src/zig/tests/text-buffer-drawing_test.zig (+114 -0)
📝 packages/core/src/zig/tests/text-buffer-view_test.zig (+44 -0)
📝 packages/core/src/zig/text-buffer-view.zig (+85 -13)

📄 Description

should solve the recent issue in #255


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opentui/pull/319 **Author:** [@kommander](https://github.com/kommander) **Created:** 11/16/2025 **Status:** ✅ Merged **Merged:** 11/17/2025 **Merged by:** [@kommander](https://github.com/kommander) **Base:** `main` ← **Head:** `debug-cjk-linebreak-bytes` --- ### 📝 Commits (10+) - [`566fc83`](https://github.com/anomalyco/opentui/commit/566fc83de1c5d90334e0e6da8681ce7bfb8266d0) reproduce - [`ffb539e`](https://github.com/anomalyco/opentui/commit/ffb539ec7c83232b209a9bffd91055a6255ba357) fixed but meh... - [`dff4d70`](https://github.com/anomalyco/opentui/commit/dff4d702f3c7dce4709cd6947fdc92d888c7185d) stash repro - [`0ce7b89`](https://github.com/anomalyco/opentui/commit/0ce7b893f63cea7beefb6eeec071cb696fa623a2) only keep repro - [`df41d77`](https://github.com/anomalyco/opentui/commit/df41d779198175257778f9a1346d70086988989e) fix - [`0977294`](https://github.com/anomalyco/opentui/commit/0977294e0ae449b9888bea9722a055dbb60fbcde) cleanup - [`b495368`](https://github.com/anomalyco/opentui/commit/b49536845744a3b2549c1e129f320f470b819026) properly cover CJK issue - [`aafbe21`](https://github.com/anomalyco/opentui/commit/aafbe2166b28dffe5920eed5d9283d5615da664d) reproduce insert+backspace+insert wrap issue - [`e319c1d`](https://github.com/anomalyco/opentui/commit/e319c1d524b53dd0be04a053445e4a38cd3c7855) weeeeeird cursor - [`cb8b04a`](https://github.com/anomalyco/opentui/commit/cb8b04a306952461ee975db30510fa1d3ca47019) awful ### 📊 Changes **5 files changed** (+392 additions, -24 deletions) <details> <summary>View changed files</summary> 📝 `packages/core/src/zig/buffer.zig` (+17 -11) 📝 `packages/core/src/zig/tests/editor-view_test.zig` (+132 -0) 📝 `packages/core/src/zig/tests/text-buffer-drawing_test.zig` (+114 -0) 📝 `packages/core/src/zig/tests/text-buffer-view_test.zig` (+44 -0) 📝 `packages/core/src/zig/text-buffer-view.zig` (+85 -13) </details> ### 📄 Description should solve the recent issue in #255 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-14 09:25:22 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentui#1229
No description provided.