Skip to content

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

Closed

Description

@Jaykul

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

Activity

  1. Tadas commented on Oct 22, 2017

    @Tadas

    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

  2. lzybkr commented on Nov 11, 2017

    @lzybkr
    Contributor

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

  3. pcunite commented on Jan 31, 2020

    @pcunite

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

  4. IanKemp commented on Jun 16, 2020

    @IanKemp

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions