Description
I'm using vi mode and have tab set to menu complete. I get an EditItemInsertString -> GroupedEdit
cast exception when I've edited part of the line with vi commands (at least C
which I use most often) and then press tab for completion. The menu complete works although the completion doesn't show up on the edit line, the error just happens after I press enter or ^C on the line. Additionally, sometimes ^C doesn't work on the first line after the exception is thrown, but this is the only non-reproducible part. The rest is entirely reproducible for me, I'm just not familiar enough with the completion code to track it down.
Environment data
PS version: 6.0.1
PSReadline version: 2.0 (built from Git)
os: 10.0.17120.1 (WinBuild.160101.0800)
PS file version: 6.0.1
Steps to reproduce or exception report
Turn on vi mode and bind tab to menu complete, then type asdf^[0Cls -^I
(using ^[
= esc and ^I
= tab). You can cycle through a couple completions to see the 'ghost text', but accepting or canceling the line gives me the same exception every time after this.