[PR #285] [MERGED] fix: Exception when selecting text on destroyed component #422

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

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opentui/pull/285
Author: @veracioux
Created: 11/9/2025
Status: Merged
Merged: 11/19/2025
Merged by: @kommander

Base: mainHead: fix/selection-destroyed-buffer


📝 Commits (5)

  • d4743b3 fix: Exception when selecting text on destroyed component
  • ddfe733 Revert "fix: Exception when selecting text on destroyed component"
  • 1849d3b Merge remote-tracking branch 'upstream/main' into fix/selection-destroyed-buffer
  • 723a877 fix: Prevent errors when selecting destroyed renderable
  • 04599ab test: Add "selection should not throw" test

📊 Changes

3 files changed (+51 additions, -1 deletions)

View changed files

📝 packages/core/src/lib/selection.ts (+1 -0)
📝 packages/core/src/renderer.ts (+1 -1)
packages/core/src/tests/renderer.selection.test.ts (+49 -0)

📄 Description

Fixes https://github.com/sst/opencode/issues/4099.


🔄 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/285 **Author:** [@veracioux](https://github.com/veracioux) **Created:** 11/9/2025 **Status:** ✅ Merged **Merged:** 11/19/2025 **Merged by:** [@kommander](https://github.com/kommander) **Base:** `main` ← **Head:** `fix/selection-destroyed-buffer` --- ### 📝 Commits (5) - [`d4743b3`](https://github.com/anomalyco/opentui/commit/d4743b31e2e71d55ff9ca2c771fc1bb35de9cf43) fix: Exception when selecting text on destroyed component - [`ddfe733`](https://github.com/anomalyco/opentui/commit/ddfe7335932da1e3c6e81cee3b310c55d0e94457) Revert "fix: Exception when selecting text on destroyed component" - [`1849d3b`](https://github.com/anomalyco/opentui/commit/1849d3b9d3d3bb5917e3f9eeef935a29c939d5be) Merge remote-tracking branch 'upstream/main' into fix/selection-destroyed-buffer - [`723a877`](https://github.com/anomalyco/opentui/commit/723a87728e65e5a4e2b28c5fede9b552af81351b) fix: Prevent errors when selecting destroyed renderable - [`04599ab`](https://github.com/anomalyco/opentui/commit/04599ab85493fceb9b2eed0ce5b04ff69582776e) test: Add "selection should not throw" test ### 📊 Changes **3 files changed** (+51 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/core/src/lib/selection.ts` (+1 -0) 📝 `packages/core/src/renderer.ts` (+1 -1) ➕ `packages/core/src/tests/renderer.selection.test.ts` (+49 -0) </details> ### 📄 Description Fixes https://github.com/sst/opencode/issues/4099. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 23:46:26 +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#422
No description provided.