You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Right-click paste with \n comes out upside down? #496
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
Reacted by Bingfeng Li, Ryan Yates, Elliott Beach and silentgamesstudio-rpc
Activity
Tadas commentedon 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
InsertLineAbovewhich pushes each text line down as the right click paste is getting processed one char at a time. CRLF works fine because CR triggersAcceptLine. Ctrl+V paste works because it inserts all of the clipboard in one go.Workaround
Remove-PSReadlineKeyHandler Ctrl+Enterlzybkr commentedon Nov 11, 2017
Closing in favor of #579 which covers all of the known issues with right-click paste.
pcunite commentedon Jan 31, 2020
Windows 10, 1909, just got bit by this bug.
IanKemp commentedon Jun 16, 2020
How and why is this not fixed more than 3 years after being reported?