Pasting a block of text runs each line seperately #18380

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

Originally created by @kilasuit on GitHub (Sep 3, 2022).

Windows Terminal version

1.14.2282.0

Windows build number

Microsoft Windows NT 10.0.25182.0

Other Software

PowerShell 7.2.6 with PSReadline 2.1.0
PowerShell 7.3.0-preview.7 with PSReadline 2.2.6

Steps to reproduce

As per this issue in the PowerShell Repo

Windows Terminal only allows pasting of a block of text which it then attempts to run line by line no matter how you try pasting as neither CTRL + V, CTRL + SHIFT + V, SHIFT + INSERT or right click paste worked for me

Expected Behavior

One of these pasting methods should paste this as a single block which can then be run by the user as a whole block, not breaking user experience expectations

Actual Behavior

Windows terminal pastes in each line one by one whilst attempting to run individual lines from the pasted text
This wrongly creates in PowerShell a Parser error, due to the lack of ability to paste all as a single block before running it as a whole block

Originally created by @kilasuit on GitHub (Sep 3, 2022). ### Windows Terminal version 1.14.2282.0 ### Windows build number Microsoft Windows NT 10.0.25182.0 ### Other Software PowerShell 7.2.6 with PSReadline 2.1.0 PowerShell 7.3.0-preview.7 with PSReadline 2.2.6 ### Steps to reproduce As per [this issue in the PowerShell Repo](https://github.com/PowerShell/PowerShell/issues/18022) Windows Terminal only allows pasting of a block of text which it then attempts to run line by line no matter how you try pasting as neither CTRL + V, CTRL + SHIFT + V, SHIFT + INSERT or right click paste worked for me ### Expected Behavior One of these pasting methods should paste this as a single block which can then be run by the user as a whole block, not breaking user experience expectations ### Actual Behavior Windows terminal pastes in each line one by one whilst attempting to run individual lines from the pasted text This wrongly creates in PowerShell a Parser error, due to the lack of ability to paste all as a single block before running it as a whole block
claunia added the Issue-QuestionNeeds-TriageNeeds-Tag-FixResolution-Answered labels 2026-01-31 06:12:10 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#18380