madskristensen / PrettyPaste

Fixes the added blank lines when copying and pasting from IE
Other
32 stars 8 forks source link

E_Fail COM exception when pasting a block selection #10

Open ericvenneker opened 4 years ago

ericvenneker commented 4 years ago

Installed product versions

Description

E_Fail com exception after block selection paste

Steps to recreate

Example code:

public void TestFunction()
{
    var array = new Barcode[]
    {
        new Barcode { Id = 1, Code = "barcode" },
        new Barcode { Id = 1, Code = "barcode" },
        new Barcode { Code = "barcode" },
        new Barcode { Code = "barcode" },
    };
}
  1. block select both the Id property's
  2. copy the selection
  3. set a multiline caret on the last two classes before the Code property
  4. paste

Current behavior

After the paste:

Expected behavior

No error message and correct paste functionality.

I am not expecting a fix, just want to make sure that this information is available for others running into this issue.