-
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
Fix issue where text copied to clipboard doesn't have line endings #3239
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
!!!
@carlos-zamora this fits in with our understanding of the world, right? we fixed the same bug in conhost, but forgot to propagate that fix to windows terminal? :O
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My bad. This is what happens when you work on two very similar bugs in two very similar projects at very similar times. Thanks for submission! @DHowett-MSFT and @miniksa can we get this in for 0.6 plz?
Yep this is tagged in for 0.6 |
Thanks this fix! It seemed totally random, sometimes worked some times didn't, thought I was going mad ;-) Do you have an ETA on 0.6 release, as would love to get a fix for this. |
@stevenh, we're trying to get 0.6 out next week. Hopefully Tuesday. Might slip a day or two since we've got a bunch of folks on vacation or sick. |
Does this also fix the window resize bug? |
🎉 Handy links: |
This bug report is about copying. Your bug report is about pasting. There’s already a hundred reports of that on this tracker. Thanks! |
Oh! I didn't quite get the meaning of the issue as explained by @d-bingham. I feel sorry about that. Thanks for clarifying ;) |
Summary of the Pull Request
References
PR Checklist
Detailed Description of the Pull Request / Additional comments
Fixes issue with console text copied to the clipboard not having correct line endings.
It appears the primary cause of the problem was the text erase code was using the default setting of the wrapped-text flag -- that is, when it erased lines (or the whole screen), it cleared cells up until the end of the line, and without end-of-line wrapping explicitly disabled, the rows with erased text all thought there was a wrapped line because the last cell in each row was written to...
Validation Steps Performed
8a) Note that in the unmodified version of Terminal, these lines have no line breaks
8b) Note that in the patched version of Terminal, line breaks exist