On Tue, Feb 18, 2020 at 12:33 PM Bram Moolenaar <
Br...@moolenaar.net> wrote:
>
> Yegappan wrote:
>
> > The following commands put Vim in a weird mode:
> >
> > new
> > call setline(1, ["foo"])
> > call feedkeys("Qg/foo/visual\<CR>", 'xt')
> >
> > I noticed this when developing tests for the code in ex_docmd.c.
> > It looks like this is caused by the code in do_exedit().
>
> Yes, that is a special mode from old Vi.
> See above ":help complex-repeat".
>
> Problem is that when there are no more characters vgetc() returns Esc,
> but that doesn't return from main_loop(), thus it hangs.
>