[PR #16197] Fix rectangular clipboard copying initiated from the app menu #30865

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

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

State: closed
Merged: Yes


cd6b083 had 2 issues:

  • Improper testing with Ctrl+M instead of Edit > Mark.
  • Wrong SelectionState function being used. When the selection is
    initiated without keyboard or mouse, IsKeyboardMarkSelection
    returns false. The proper function to use is IsLineSelection.

Closes #15153

Validation Steps Performed

  • Run Far
  • Start selection via Edit>Mark
  • Hold Alt while dragging to make a rectangular selection
  • Right click
  • Clipboard contains a rectangular copy ✅
**Original Pull Request:** https://github.com/microsoft/terminal/pull/16197 **State:** closed **Merged:** Yes --- cd6b083 had 2 issues: * Improper testing with Ctrl+M instead of Edit > Mark. * Wrong SelectionState function being used. When the selection is initiated without keyboard or mouse, `IsKeyboardMarkSelection` returns false. The proper function to use is `IsLineSelection`. Closes #15153 ## Validation Steps Performed * Run Far * Start selection via Edit>Mark * Hold Alt while dragging to make a rectangular selection * Right click * Clipboard contains a rectangular copy ✅
claunia added the pull-request label 2026-01-31 09:43:27 +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#30865