[PR #14635] Don't copy before pasting in copyOnSelect mode #30173

Open
opened 2026-01-31 09:39:07 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/14635
Author: @zadjii-msft
Created: 1/5/2023
Status: 🔄 Open

Base: mainHead: dev/migrie/b/14464-copyOnSelect-moving-text


📝 Commits (4)

  • 2ec30ef this is a basic copyOnSelect test, for reference, for starting more tests
  • 45b3e8d some tests that fail, intentionally
  • ca658ba Fix the bug
  • eaf7215 Merge remote-tracking branch 'origin/main' into dev/migrie/b/14464-copyOnSelect-moving-text

📊 Changes

2 files changed (+196 additions, -3 deletions)

View changed files

📝 src/cascadia/TerminalControl/ControlInteractivity.cpp (+14 -3)
📝 src/cascadia/UnitTests_Control/ControlInteractivityTests.cpp (+182 -0)

📄 Description

Don't try to copy if we're in copyOnSelect mode, and have already copied this selection.

#14464 demonstrates a scenario where the buffer contents might have changed since the selection was made, and copying here would cause weirdness.

Also adds a couple tests for copyOnSelect.

Closes #14464


🔄 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/microsoft/terminal/pull/14635 **Author:** [@zadjii-msft](https://github.com/zadjii-msft) **Created:** 1/5/2023 **Status:** 🔄 Open **Base:** `main` ← **Head:** `dev/migrie/b/14464-copyOnSelect-moving-text` --- ### 📝 Commits (4) - [`2ec30ef`](https://github.com/microsoft/terminal/commit/2ec30ef270788e26e71a504e685f69f397addd18) this is a basic copyOnSelect test, for reference, for starting more tests - [`45b3e8d`](https://github.com/microsoft/terminal/commit/45b3e8d4f8649390e43e703d91abd54de7753caf) some tests that fail, intentionally - [`ca658ba`](https://github.com/microsoft/terminal/commit/ca658ba331ef641830dabe57f99198e2857197b1) Fix the bug - [`eaf7215`](https://github.com/microsoft/terminal/commit/eaf72153e74f21374dd994a25599a6bff846b8a4) Merge remote-tracking branch 'origin/main' into dev/migrie/b/14464-copyOnSelect-moving-text ### 📊 Changes **2 files changed** (+196 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalControl/ControlInteractivity.cpp` (+14 -3) 📝 `src/cascadia/UnitTests_Control/ControlInteractivityTests.cpp` (+182 -0) </details> ### 📄 Description Don't try to copy if we're in `copyOnSelect` mode, and have already copied this selection. #14464 demonstrates a scenario where the buffer contents might have changed since the selection was made, and copying here would cause weirdness. Also adds a couple tests for `copyOnSelect`. Closes #14464 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:39:07 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#30173