Skip to content
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

Right-click paste with \n comes out upside down? #496

Closed
Jaykul opened this issue Jan 21, 2017 · 4 comments
Closed

Right-click paste with \n comes out upside down? #496

Jaykul opened this issue Jan 21, 2017 · 4 comments

Comments

@Jaykul
Copy link

Jaykul commented Jan 21, 2017

When using PSReadLine 1.2, and pasting text that has newlines without carriage returns, the lines come out in reverse order.
2017-01-20_22-32-31

@Tadas
Copy link

Tadas commented Oct 22, 2017

Seems to be happening because of this key handler: https://github.com/lzybkr/PSReadLine/blob/master/PSReadLine/KeyBindings.cs#L135
LF is interpreted as Ctrl+Enter and triggers InsertLineAbove which pushes each text line down as the right click paste is getting processed one char at a time. CRLF works fine because CR triggers AcceptLine. Ctrl+V paste works because it inserts all of the clipboard in one go.

Workaround

Remove-PSReadlineKeyHandler Ctrl+Enter

@lzybkr
Copy link
Member

lzybkr commented Nov 11, 2017

Closing in favor of #579 which covers all of the known issues with right-click paste.

@lzybkr lzybkr closed this as completed Nov 11, 2017
@pcunite
Copy link

pcunite commented Jan 31, 2020

Windows 10, 1909, just got bit by this bug.

@IanKemp
Copy link

IanKemp commented Jun 16, 2020

How and why is this not fixed more than 3 years after being reported?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants