Windows build number: 10.0.18362.10024
Windows Terminal version (if applicable): v0.7.3291.0
Copy some text from the terminal, with multiple lines
Paste that text inside a terminal editor (tested with nano)
Copy text in multiple lines, paste the same multiple lines
The pasted text will be concatenated in 1 line
From when I hexdump-ed a repro of this, it looks like on multi-line copy-pastes, instead of inserting a newline at the separation between lines it just adds spaces until the next line begins (as it appears on the screen). Kind of makes sense since the selection is highlighting spaces instead of jumping to the newline.
Edit: duplicate issue to #3367
Here's the hexdump of text from the top of a new CMD terminal:
Say, are you copying with right-click or with the ctrl+c or ctrl+shift+c?
@DHowett-MSFT it behaves like that with ctrl+c or ctrl+shift+c, but it works fine with right click. What.
@mkitzan, thanks for the tip. I wrote small Python script with Terminal in order to generate some long, repetitive-kind of text, I faced the wrapping bug when I copied text with ctrl+c, but right click saved the day.
So new release v0.7.3382.0 has fixed the problem for me, it's mentioned in the release notes:
https://github.com/microsoft/terminal/releases/tag/v0.7.3382.0
Thanks for confirming.
Most helpful comment
@DHowett-MSFT it behaves like that with
ctrl+corctrl+shift+c, but it works fine with right click. What.