Ported from internal bug
When I select some text from a window using Vim.exe and paste to another window, the text is badly formatted.
Also, if double-click text from a command window, it copies/pastes the extra white-space at the end which was not the case in earlier releases.
I also see the problem when copy/pasting to an excel spreadsheel
Tried to repro: space bug does not repro, vim bug does since 19H1
To clarify, this is not #1091 because 1091 is in Terminal and this is in Conhost
Just commenting to add that I see this behavior when it's PowerShell.exe in the terminal. Doesn't behave on the paste into other apps like it does with cmd.exe and PowerShell.exe natively. I assume it's the trailing whitespace on each line as the internal bug's description states.
Copying text does not trim the trailing whitespace for me in WSL unless I hold down the Alt key while selecting. No issues with PowerShell or cmd.
:tada:This issue was addressed in #2831, which has now been successfully released as Windows Terminal Preview v0.5.2762.0.:tada:
Handy links:
Most helpful comment
Copying text does not trim the trailing whitespace for me in WSL unless I hold down the Alt key while selecting. No issues with PowerShell or cmd.