"copy on select" doesn't work good #19248

Open
opened 2026-01-31 06:38:02 +00:00 by claunia · 0 comments
Owner

Originally created by @ozinka on GitHub (Jan 20, 2023).

Windows Terminal version

1.16.3463.0

Windows build number

10.0.19044.0

Other Software

No response

Steps to reproduce

Enable option in settings "copy on select" in settings.
Select something in terminalLet it be "some text 1".
image
Switch to another application e.g. notepad.
Paste.
Copy anything else in notepad and paste into terminal with right click. Let it be "some text 2".
image
Switch to terminal and paste text with Mouse Right Click.
image

Expected Behavior

Expecting to see pasted "some text 2"

Actual Behavior

Selection from Terminal become not selected and pasted text is still "some text 1".
image

I'm expecting to see copied new text. But when I paste with Mouse Right Click, it copies again selection from Terminal and paste it.
During work I often use copy/paste functions and this behavior brings significant inconvenience.

For example, putty keeps selection and data in clipboard till you copy anything else in other place. In that case selection (background highlighting) in putty just deselected.
It looks Mouse Right Click does two action copy selected+paste, but I expect to see only paste (maybe +deselect).
It seems in some previous versions of ms terminal it worked properly.
Thnx

Originally created by @ozinka on GitHub (Jan 20, 2023). ### Windows Terminal version 1.16.3463.0 ### Windows build number 10.0.19044.0 ### Other Software _No response_ ### Steps to reproduce Enable option in settings "copy on select" in settings. Select something in terminalLet it be "some text 1". ![image](https://user-images.githubusercontent.com/34980479/213707130-79315f50-007f-484a-a244-1925d07dc3fa.png) Switch to another application e.g. notepad. Paste. Copy anything else in notepad and paste into terminal with right click. Let it be "some text 2". ![image](https://user-images.githubusercontent.com/34980479/213707296-c71d4b8c-e94f-482b-9423-41f508adf81f.png) Switch to terminal and paste text with Mouse Right Click. ![image](https://user-images.githubusercontent.com/34980479/213707476-6120cc2d-73d0-4693-a8b9-925b9240c20d.png) ### Expected Behavior Expecting to see pasted "some text 2" ### Actual Behavior Selection from Terminal become not selected and pasted text is still "some text 1". ![image](https://user-images.githubusercontent.com/34980479/213707596-35f70d7a-873d-42ca-8534-78aba561e8bb.png) I'm expecting to see copied new text. But when I paste with Mouse Right Click, it copies again selection from Terminal and paste it. During work I often use copy/paste functions and this behavior brings significant inconvenience. For example, putty keeps selection and data in clipboard till you copy anything else in other place. In that case selection (background highlighting) in putty just deselected. It looks Mouse Right Click does two action copy selected+paste, but I expect to see only paste (maybe +deselect). It seems in some previous versions of ms terminal it worked properly. Thnx
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#19248