The copy/paste line wrapping bug is back #5273

Closed
opened 2026-01-31 00:09:18 +00:00 by claunia · 6 comments
Owner

Originally created by @xgonc on GitHub (Nov 28, 2019).

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

Originally created by @xgonc on GitHub (Nov 28, 2019). # Environment ```none 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
Author
Owner

@mkitzan commented on GitHub (Dec 2, 2019):

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

@mkitzan commented on GitHub (Dec 2, 2019): 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: <img width="522" alt="cmd-prompt" src="https://user-images.githubusercontent.com/28279285/69933330-2f984100-1483-11ea-96d2-53c007ff2e56.PNG"> <img width="329" alt="hexdump" src="https://user-images.githubusercontent.com/28279285/69933218-cadce680-1482-11ea-8cf7-a8beebf7b6c5.PNG">
Author
Owner

@DHowett-MSFT commented on GitHub (Dec 2, 2019):

Say, are you copying with right-click or with the ctrl+c or ctrl+shift+c?

@DHowett-MSFT commented on GitHub (Dec 2, 2019): Say, are you copying with right-click or with the <kbd>ctrl+c</kbd> or <kbd>ctrl+shift+c</kbd>?
Author
Owner

@mkitzan commented on GitHub (Dec 2, 2019):

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

@mkitzan commented on GitHub (Dec 2, 2019): @DHowett-MSFT it behaves like that with `ctrl+c` or `ctrl+shift+c`, but it works fine with right click. What.
Author
Owner

@mahmoudajawad commented on GitHub (Dec 4, 2019):

@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.

@mahmoudajawad commented on GitHub (Dec 4, 2019): @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.
Author
Owner

@mahmoudajawad commented on GitHub (Dec 6, 2019):

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

@mahmoudajawad commented on GitHub (Dec 6, 2019): 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
Author
Owner

@DHowett-MSFT commented on GitHub (Dec 7, 2019):

Thanks for confirming.

@DHowett-MSFT commented on GitHub (Dec 7, 2019): Thanks for confirming.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#5273