How to reproduce:
- Start vanilla Vim with two buffers.
$ vim -Nu NONE -o a b
- buffer 'a' to modified.
:set modofied
- exec :hide command with trail comment
:hide " command
Expected behavior:
- :hide command succeed.
Actual behavior:
- Occurred 'E474: Invalid argument'
I wrote a patch. Of course contains a test.
Check it please.
--
Best regards,
Hirohito Higashi (a.k.a. h_east)
2016-11-15(Tue) 6:58:08 UTC+9 Bram Moolenaar:
> Hirohito Higashi wrote:
>
> > Hi Bram and list,
> >
> > How to reproduce:
> > - Start vanilla Vim with two buffers.
> > $ vim -Nu NONE -o a b
> > - buffer 'a' to modified.
> > :set modofied
> > - exec :hide command with trail comment
> > :hide " command
> >
> > Expected behavior:
> > - :hide command succeed.
> >
> > Actual behavior:
> > - Occurred 'E474: Invalid argument'
> >
> >
> > I wrote a patch. Of course contains a test.
> > Check it please.
>
> Can you add a test that does something like this:
>
> :hide echo "one|two"
>
> To check that the bar is not recognized to separate commands?
Right, I added a test case.
Check an attached patch.
NOTE:
This issue was reported by Norio Takagi.