"singleLine=true" copy/paste issue #15454

Closed
opened 2026-01-31 04:39:03 +00:00 by claunia · 2 comments
Owner

Originally created by @elsaco on GitHub (Oct 6, 2021).

Windows Terminal version (or Windows build number)

main 0b552e1a

Other Software

Windows version 10.0.22471.0

Steps to reproduce

  • open settings.json
  • set copy "singleLine" to true
  • copy lots of data (a signature block from Install.ps1 in this case)

Expected Behavior

No response

Actual Behavior

  • multiple inserts after crtl+v
  • shell prompt not coming back
  • buffer corruption after ctrl+c

Example:

https://user-images.githubusercontent.com/3933920/136127584-36084422-7dac-4a4e-8a9f-37756ee73138.mp4

Originally created by @elsaco on GitHub (Oct 6, 2021). ### Windows Terminal version (or Windows build number) main 0b552e1a ### Other Software Windows version 10.0.22471.0 ### Steps to reproduce - open settings.json - set copy "singleLine" to true - copy lots of data (a signature block from Install.ps1 in this case) ### Expected Behavior _No response_ ### Actual Behavior - multiple inserts after crtl+v - shell prompt not coming back - buffer corruption after ctrl+c Example: https://user-images.githubusercontent.com/3933920/136127584-36084422-7dac-4a4e-8a9f-37756ee73138.mp4
Author
Owner

@zadjii-msft commented on GitHub (Oct 6, 2021):

Does the same behavior repro if you copy the text from somewhere else, like a text editor? My guess is the PSReadline is trying to do something helpful with the leading spaces at the prompt here. How does this behave in other shells?

@zadjii-msft commented on GitHub (Oct 6, 2021): Does the same behavior repro if you copy the text from somewhere else, like a text editor? My guess is the PSReadline is trying to do something helpful with the leading spaces at the prompt here. How does this behave in other shells?
Author
Owner

@ghost commented on GitHub (Oct 10, 2021):

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@ghost commented on GitHub (Oct 10, 2021): This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#15454