-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Copying wrapped lines includes a newline character #18457
Comments
We've found some similar issues:
If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.
|
Very similar to #16166 |
Can you try this again with Preview 1.22/? https://aka.ms/terminal-preview |
Seems to be working as intended in Preview. |
Great! Thanks for verifying that! We'll close this as fixed 😊. |
Considering this has been a recurring issue, would you consider adding some tests to catch it the next time it happens? |
Windows Terminal version
1.21.3231.0
Windows build number
10.0.22631.0
Other Software
Ubuntu 24.04.1 LTS (WSL2)
Steps to reproduce
Type a long string, until it wraps at the window width:
$ aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Select the text to copy it.
Paste it, observe the newline introduced at the point of wrapping.
Expected Behavior
Copy the literal string, not the newline.
Actual Behavior
It copies a newline at the point of wrapping. In my example with my particular font and window size, it becomes:
The text was updated successfully, but these errors were encountered: