[PR #582] [MERGED] fix multiline paste viewport/scroll margin behavior #635

Closed
opened 2026-03-02 23:47:27 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opentui/pull/582
Author: @kommander
Created: 1/24/2026
Status: Merged
Merged: 1/24/2026
Merged by: @kommander

Base: mainHead: debug-textarea-jumping


📝 Commits (10+)

📊 Changes

9 files changed (+470 additions, -13 deletions)

View changed files

📝 packages/core/src/renderables/__tests__/Textarea.paste.test.ts (+22 -0)
📝 packages/core/src/zig/editor-view.zig (+8 -2)
📝 packages/core/src/zig/text-buffer-view.zig (+0 -1)
📝 packages/solid/examples/components/ExampleSelector.tsx (+12 -3)
📝 packages/solid/examples/components/text-truncation-demo.tsx (+7 -1)
packages/solid/examples/components/textarea-keybindings.ts (+49 -0)
packages/solid/examples/components/textarea-minimal-demo.tsx (+55 -0)
📝 packages/solid/examples/session.tsx (+23 -5)
📝 packages/solid/tests/cursor-behavior.test.tsx (+294 -1)

📄 Description

No description provided


🔄 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/582 **Author:** [@kommander](https://github.com/kommander) **Created:** 1/24/2026 **Status:** ✅ Merged **Merged:** 1/24/2026 **Merged by:** [@kommander](https://github.com/kommander) **Base:** `main` ← **Head:** `debug-textarea-jumping` --- ### 📝 Commits (10+) - [`2293409`](https://github.com/anomalyco/opentui/commit/229340969dc19da52f1a67ed94060be56443bf22) demo fixes - [`3c6e968`](https://github.com/anomalyco/opentui/commit/3c6e968d35c8d9537a4c38ba6d4b2805beca34c8) demo setup - [`a5c9af6`](https://github.com/anomalyco/opentui/commit/a5c9af63826989ce3f523685b2aa9c86ecac187a) repro maybe - [`e8bdd22`](https://github.com/anomalyco/opentui/commit/e8bdd220f50771446b2c9b7af73700913b24e80b) repro maybe maybe - [`4ba74f2`](https://github.com/anomalyco/opentui/commit/4ba74f2fc4b6aeba4068b41d8a1fd8b275af2929) debug logs - [`2980e0d`](https://github.com/anomalyco/opentui/commit/2980e0df15240cb0ccf1019690b648c6f03015ae) no side effect logs - [`69c331a`](https://github.com/anomalyco/opentui/commit/69c331a66c317a9a6b5f81d545babac1455b9c95) actual repro - [`4838138`](https://github.com/anomalyco/opentui/commit/48381382639cc945aad0cea301d08b0b1a96c0d1) maybe fix - [`2f34cae`](https://github.com/anomalyco/opentui/commit/2f34caec6f02065d995cdb22d21f77bfc6198ebe) paste resize repro - [`4c46a2e`](https://github.com/anomalyco/opentui/commit/4c46a2e611a45acbb602f458353e92b4864e8547) stash ### 📊 Changes **9 files changed** (+470 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `packages/core/src/renderables/__tests__/Textarea.paste.test.ts` (+22 -0) 📝 `packages/core/src/zig/editor-view.zig` (+8 -2) 📝 `packages/core/src/zig/text-buffer-view.zig` (+0 -1) 📝 `packages/solid/examples/components/ExampleSelector.tsx` (+12 -3) 📝 `packages/solid/examples/components/text-truncation-demo.tsx` (+7 -1) ➕ `packages/solid/examples/components/textarea-keybindings.ts` (+49 -0) ➕ `packages/solid/examples/components/textarea-minimal-demo.tsx` (+55 -0) 📝 `packages/solid/examples/session.tsx` (+23 -5) 📝 `packages/solid/tests/cursor-behavior.test.tsx` (+294 -1) </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 23:47:27 +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#635
No description provided.