Terminal: The copy/paste line wrapping bug is back

Created on 28 Nov 2019  路  6Comments  路  Source: microsoft/terminal

Environment

Windows build number: 10.0.18362.10024
Windows Terminal version (if applicable): v0.7.3291.0

Steps to reproduce

Copy some text from the terminal, with multiple lines
Paste that text inside a terminal editor (tested with nano)

Expected behavior

Copy text in multiple lines, paste the same multiple lines

Actual behavior

The pasted text will be concatenated in 1 line

Area-TerminalControl Issue-Bug Needs-Author-Feedback Product-Terminal Resolution-Fix-Available

Most helpful comment

@DHowett-MSFT it behaves like that with ctrl+c or ctrl+shift+c, but it works fine with right click. What.

All 6 comments

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:
cmd-prompt
hexdump

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TayYuanGeng picture TayYuanGeng  路  3Comments

zadjii-msft picture zadjii-msft  路  3Comments

warpdesign picture warpdesign  路  3Comments

carlos-zamora picture carlos-zamora  路  3Comments

mdtauk picture mdtauk  路  3Comments