[WSL] On copy Windows Terminal adds line breaks where they do not exist #7206

Open
opened 2026-01-31 00:57:47 +00:00 by claunia · 0 comments
Owner

Originally created by @Gorthog on GitHub (Mar 29, 2020).

Environment

Windows build number: Microsoft Windows [Version 10.0.19041.172]
Windows Terminal version (if applicable): 0.10.781.0

Steps to reproduce

Echo long text without line breaks until it reaches the bottom of the window and causes Windows Terminal to scroll down.
mark text with mouse and right click.
paste the text

Expected behavior

Text is copied without line breaks.

Actual behavior

Text is copied with line breaks.

Note that if I resize the Windows Terminal, and then copy the text again, there are no line breaks pasted. Also this works correctly if the text is copied from the top of the screen.

windows_terminal_paste_bug

Originally created by @Gorthog on GitHub (Mar 29, 2020). # Environment ```none Windows build number: Microsoft Windows [Version 10.0.19041.172] Windows Terminal version (if applicable): 0.10.781.0 ``` # Steps to reproduce Echo long text without line breaks until it reaches the bottom of the window and causes Windows Terminal to scroll down. mark text with mouse and right click. paste the text # Expected behavior Text is copied without line breaks. # Actual behavior Text is copied with line breaks. Note that if I resize the Windows Terminal, and then copy the text again, there are no line breaks pasted. Also this works correctly if the text is copied from the top of the screen. ![windows_terminal_paste_bug](https://user-images.githubusercontent.com/15230040/77862035-8f300e80-7221-11ea-83c4-ec7524bcc637.gif)
claunia added the Needs-TriageNeeds-Tag-Fix labels 2026-01-31 00:57:47 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#7206