-
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
Multi-line paste fails to render properly in Terminal Preview, when copied from gist.github.com #7296
Comments
Thanks for the report! I think this is another instance of the problem in #5821, but I can't be sure. We end up sending the CR before the LF, and powershell reacts by moving to the beginning of the line:
becomes
where the cursor is and then it inserts LF. PowerShell doesn't submit the command because pressing enter anywhere but the end of the line actually allows a line break. Then it sends
CR
and so on. Working on our pasting story is gonna help this out, so I'm going to roll this together with /dup #5821. |
Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report! |
(Also, that's a lovely color scheme. What is it?) |
@DHowett it's just the built-in |
Here's the video that shows the module in action (off-topic from OP) |
Lovely! Thanks :D |
Environment
Windows Terminal 1.2.2234.0
Steps to reproduce
This example fails as well:
I can't be 100% sure, but it seems like maybe some "hidden" formatting from gist.github.com is causing this behavior? When I copied and pasted the examples using the GitHub issue editor (as I am authoring this), I can't reproduce it from here. 🤷🏻♂️
Expected behavior
The copied (unformatted) text is pasted precisely, character-for-character. The cursor position is at the end of the paste, so I can simply press
ENTER
to run the pasted command.Actual behavior
The text is being pasted incorrectly. It appears that the first and last line of the paste are actually being reversed.
Also if I hit
ENTER
to run the command, it gets mangled even further. I'm not sure if the cursor position is actually where it visually appears to be.The text was updated successfully, but these errors were encountered: