Copying wrapped lines in cygwin can have a spurious space/newline between lines #5760
Labels
Issue-Bug
It either shouldn't be doing this or needs an investigation.
Needs-Attention
The core contributors need to come back around and look at this ASAP.
Needs-Tag-Fix
Doesn't match tag requirements
Needs-Triage
It's a new issue that the core contributor team needs to triage at the next triage meeting
Product-Terminal
The new Windows Terminal.
Environment
Steps to reproduce
Open a cygwin terminal and enter a long line that wraps the terminal. If you then select the entire wrapped line you see an extra space is selected where the line wraps. This does not occur in a normal cmd terminal. When you copy the long cygwin line it also copies the space, and the newline, into the clipboard, so when you paste you end up getting 2 lines with an extra space.
Expected behavior
Expected behaviour is that the text is copied as a single line without a spurious space.
Actual behavior
That it behave like in the cmd window. The extra space at the end of the line should not be selected. And when copied the space and newline should not be in the clipboard. This is a very annoying issue as copying and pasting commands from one terminal to another fails as it ends up pasting two lines which get run as two invalid commands.
Multiline selection in cygwin:

Notice the highlighted space at the end of the first line.
Multiline selection in CMD:

Notice how there is no highlighted space at the end of the first line.
Pasted text from both examples in Sublime Text:

Note how the cygwin text is over two lines whereas the CMD isn't.
The text was updated successfully, but these errors were encountered: