[PR #693] [CLOSED] /editor: non-successful editor exits should keep the text in the textarea #9681

Closed
opened 2026-02-16 18:13:58 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/693
Author: @Schniz
Created: 7/4/2025
Status: Closed

Base: devHead: schniz/non-successful-editor-exit


📝 Commits (2)

  • a1161fd /editor: non-successful editor exits should keep the text in the textarea
  • cd84116 fix: preserve textarea content when external editor fails

📊 Changes

1 file changed (+31 additions, -8 deletions)

View changed files

📝 packages/tui/internal/tui/tui.go (+31 -8)

📄 Description

when doing :cq i assume that the textarea cobtent will not have my changes in vim, but also dont clear up the content (which is what it currently does).

This PR ensures that :cq will avoid overwriting the textarea with emoty xontent


🔄 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/opencode/pull/693 **Author:** [@Schniz](https://github.com/Schniz) **Created:** 7/4/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `schniz/non-successful-editor-exit` --- ### 📝 Commits (2) - [`a1161fd`](https://github.com/anomalyco/opencode/commit/a1161fd0e89b22fff9939c2d8de4824fcbd1338a) /editor: non-successful editor exits should keep the text in the textarea - [`cd84116`](https://github.com/anomalyco/opencode/commit/cd8411691d65347df262da09ce541c154051eabe) fix: preserve textarea content when external editor fails ### 📊 Changes **1 file changed** (+31 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `packages/tui/internal/tui/tui.go` (+31 -8) </details> ### 📄 Description when doing :cq i assume that the textarea cobtent will not have my changes in vim, but also dont clear up the content (which is what it currently does). This PR ensures that :cq will avoid overwriting the textarea with emoty xontent --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:13:58 -05:00
yindo closed this issue 2026-02-16 18:13:58 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9681