[PR #19067] Don't trim bracketed pastes #31694

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

Original Pull Request: https://github.com/microsoft/terminal/pull/19067

State: closed
Merged: Yes


  • Moves clipboard writing from ControlCore to TerminalPage.
    This requires adding a bunch of event types and logic.
    This is technically not needed anymore after changing the
    direction of this PR, but I kept it because it's better.
  • Add a WarnAboutMultiLinePaste enum to differentiate between
    "paste without warning always/never/if-bracketed-paste-disabled".

Closes #13014
Closes https://github.com/microsoft/edit/issues/279

Validation Steps Performed

  • Launch Microsoft Edit and copy text with a trailing newline
  • Paste it with Ctrl+Shift+V
  • It's pasted as it was copied
  • Changing the setting to "always" always warns
**Original Pull Request:** https://github.com/microsoft/terminal/pull/19067 **State:** closed **Merged:** Yes --- * Moves clipboard writing from `ControlCore` to `TerminalPage`. This requires adding a bunch of event types and logic. This is technically not needed anymore after changing the direction of this PR, but I kept it because it's better. * Add a `WarnAboutMultiLinePaste` enum to differentiate between "paste without warning always/never/if-bracketed-paste-disabled". Closes #13014 Closes https://github.com/microsoft/edit/issues/279 ## Validation Steps Performed * Launch Microsoft Edit and copy text with a trailing newline * Paste it with Ctrl+Shift+V * It's pasted as it was copied ✅ * Changing the setting to "always" always warns ✅
claunia added the pull-request label 2026-01-31 09:48:54 +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#31694