Closed
Description
Windows Terminal version
1.20.11781.0
Windows build number
10.0.19045.4894
Other Software
No response
Steps to reproduce
- Copy-on-select needs to be enabled.
- Go Terminal and select some text with your mouse. Don't deselect it by performing another click.
- Switch to another context, which can be another Terminal tab or an outside application like Notepad, and copy some other text to the clipboard.
- Optional: Test that the clipboard contains the new copied text by performing a simple paste in that context.
- Switch back to the original Terminal tab, and try to paste the new selection by doing a right click or Shift+Insert (Ctrl+V doesn't exhibit this bug).
- Observe that the text that gets pasted isn't the one you last explicitly copied, but is instead the original selection.
Expected Behavior
Copy-on-select should only happen when you do the selection. In Terminal you select a piece of text, and it gets put onto the clipboard. If you switch to another context, copy some other text to the clipboard, then switch back to Terminal to paste it with either the mouse or Shift+Insert, what should be pasted is the thing you last copied onto the clipboard.
Actual Behavior
When you switch to a Terminal window where you previously made a selection, and try to paste from the clipboard by either doing a right click or pressing Shift+Insert, Terminal treats the existing selection in that tab as a new "copy-on-select" event, overriding your existing clipboard content (whatever you copied before trying to paste).
Activity