When copying wrapped text, occasionally copies rendered newline #7384

Closed
opened 2026-01-31 01:02:31 +00:00 by claunia · 4 comments
Owner

Originally created by @Merith-TK on GitHub (Apr 13, 2020).

Environment

Windows build number: Microsoft Windows [Version 10.0.19587.1000]
Windows Terminal version (if applicable): 0.10.781.0

Any other software?
Nope.

Steps to reproduce

resize the window to the size of your phone, and either over ssh or on localhost, echo a long string such as
asdfasdfasd65f4a6s5d4f56asd4f65a4sdf654asd65f4a6s5d4f65a4sdf65a4sdf65as6dfsdaqwfasd231xcvedfr9864werasdf354asd

Select and copy the terminal output
and then without resizing paste elsewhere

Expected behavior

Copy/paste properly

Actual behavior

At the time of creating this issue, it was not occurring,
but I will describe
I cat'ed this file to share to my buddy off my server over ssh

[Unit]
Description=Webserver for VSCODE
Documentation=https://github.com/cdr/code-server/
After=network-online.target
Wants=network-online.target systemd-networkd-wait-online.service

[Service]
Restart=on-abnormal
StartLimitInterval=10
StartLimitBurst=3

User=code
Group=code

#WorkingDirectory=/home/developer/Workspace
ExecStart=/opt/code-server/program/code-server --extensions-dir /opt/code-server/extensions --user-data-dir /opt/code-server/data/ /home/code/Workspace --auth=none --host 0.0.0.0 --disable-ssh
ExecReload=/bin/kill -USR1 $MAINPID

[Install]
WantedBy=multi-user.target

selected text was wrapped so the ExecStart directive looked like this

ExecStart=/opt/code-server/program/code-server --extensions-dir /opt/code-serv
er/extensions --user-data-dir /opt/code-server/data/ /home/code/Workspace --a
uth=none --host 0.0.0.0 --disable-ssh

And when I pasted it it pasted what It looked like in the terminal, with no regard for the fact there was no new lines.

This happens a bit too often for my liking, (at least on average of constant use, 3 times an hour)

Originally created by @Merith-TK on GitHub (Apr 13, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none Windows build number: Microsoft Windows [Version 10.0.19587.1000] Windows Terminal version (if applicable): 0.10.781.0 Any other software? Nope. ``` # Steps to reproduce resize the window to the size of your phone, and either over ssh or on localhost, echo a long string such as `asdfasdfasd65f4a6s5d4f56asd4f65a4sdf654asd65f4a6s5d4f65a4sdf65a4sdf65as6dfsdaqwfasd231xcvedfr9864werasdf354asd` Select and copy the terminal output and then without resizing paste elsewhere # Expected behavior Copy/paste properly # Actual behavior At the time of creating this issue, it was not occurring, but I will describe I cat'ed this file to share to my buddy off my server over ssh ``` [Unit] Description=Webserver for VSCODE Documentation=https://github.com/cdr/code-server/ After=network-online.target Wants=network-online.target systemd-networkd-wait-online.service [Service] Restart=on-abnormal StartLimitInterval=10 StartLimitBurst=3 User=code Group=code #WorkingDirectory=/home/developer/Workspace ExecStart=/opt/code-server/program/code-server --extensions-dir /opt/code-server/extensions --user-data-dir /opt/code-server/data/ /home/code/Workspace --auth=none --host 0.0.0.0 --disable-ssh ExecReload=/bin/kill -USR1 $MAINPID [Install] WantedBy=multi-user.target ``` selected text was wrapped so the `ExecStart` directive looked like this ``` ExecStart=/opt/code-server/program/code-server --extensions-dir /opt/code-serv er/extensions --user-data-dir /opt/code-server/data/ /home/code/Workspace --a uth=none --host 0.0.0.0 --disable-ssh ``` And when I pasted it it pasted what It looked like in the terminal, with no regard for the fact there was no new lines. This happens a bit too often for my liking, (at least on average of constant use, 3 times an hour)
claunia added the Resolution-Duplicate label 2026-01-31 01:02:31 +00:00
Author
Owner

@skyline75489 commented on GitHub (Apr 13, 2020):

This should be fixed by #5181, if i'm not mistaken

@skyline75489 commented on GitHub (Apr 13, 2020): This should be fixed by #5181, if i'm not mistaken
Author
Owner

@Merith-TK commented on GitHub (Apr 13, 2020):

well if it is fixed, the update has not rolled out... last release was almost a month ago

@Merith-TK commented on GitHub (Apr 13, 2020): well if it is fixed, the update has not rolled out... last release was almost a month ago
Author
Owner

@DHowett-MSFT commented on GitHub (Apr 13, 2020):

An astute observation.

@DHowett-MSFT commented on GitHub (Apr 13, 2020): An astute observation.
Author
Owner

@Merith-TK commented on GitHub (Apr 13, 2020):

yep. forgot to close this sorry,

@Merith-TK commented on GitHub (Apr 13, 2020): yep. forgot to close this sorry,
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#7384