Copying text from the command window behaves differently than previous versions #1501

Closed
opened 2026-01-30 22:28:59 +00:00 by claunia · 4 comments
Owner

Originally created by @DHowett-MSFT on GitHub (Jun 3, 2019).

Originally assigned to: @carlos-zamora on GitHub.

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

Originally created by @DHowett-MSFT on GitHub (Jun 3, 2019). Originally assigned to: @carlos-zamora on GitHub. 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
Author
Owner

@DHowett-MSFT commented on GitHub (Jun 3, 2019):

To clarify, this is not #1091 because 1091 is in Terminal and this is in Conhost

@DHowett-MSFT commented on GitHub (Jun 3, 2019): To clarify, this is not #1091 because 1091 is in Terminal and this is in Conhost
Author
Owner

@JeremyTBradshaw commented on GitHub (Jul 19, 2019):

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.

@JeremyTBradshaw commented on GitHub (Jul 19, 2019): 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.
Author
Owner

@ghost commented on GitHub (Jul 21, 2019):

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.

@ghost commented on GitHub (Jul 21, 2019): 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.
Author
Owner

@ghost commented on GitHub (Oct 4, 2019):

:tada:This issue was addressed in #2831, which has now been successfully released as Windows Terminal Preview v0.5.2762.0.🎉

Handy links:

@ghost commented on GitHub (Oct 4, 2019): :tada:This issue was addressed in #2831, which has now been successfully released as `Windows Terminal Preview v0.5.2762.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v0.5.2762.0) * [Store Download](https://www.microsoft.com/store/apps/9n0dx20hk701?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#1501