Christian Brabandt wrote:
> > > There is a bug when using g< with execute()
> > >
> > > One cannot capture it's output using execute()/redir:
> > >
> > > :echo "a\nb\nc\nd\n"
> > > (press enter prompt)
> > > :norm! g<
> > > (shows the echo output again)
> > > :let b=execute(':unsilent norm!
On Do, 01 Sep 2016, Bram Moolenaar wrote:
>
> Christian Brabandt wrote:
>
> > There is a bug when using g< with execute()
> >
> > One cannot capture it's output using execute()/redir:
> >
> > :echo "a\nb\nc\nd\n"
> > (press enter prompt)
> > :norm! g<
> > (shows the echo output again)
> >
Hi Bram!
On Do, 01 Sep 2016, Bram Moolenaar wrote:
>
> Christian Brabandt wrote:
>
> > There is a bug when using g< with execute()
> >
> > One cannot capture it's output using execute()/redir:
> >
> > :echo "a\nb\nc\nd\n"
> > (press enter prompt)
> > :norm! g<
> > (shows the echo output
Christian Brabandt wrote:
> There is a bug when using g< with execute()
>
> One cannot capture it's output using execute()/redir:
>
> :echo "a\nb\nc\nd\n"
> (press enter prompt)
> :norm! g<
> (shows the echo output again)
> :let b=execute(':unsilent norm! g<')
> :echo empty(b)
> 1
> :norm! g<
There is a bug when using g< with execute()
One cannot capture it's output using execute()/redir:
:echo "a\nb\nc\nd\n"
(press enter prompt)
:norm! g<
(shows the echo output again)
:let b=execute(':unsilent norm! g<')
:echo empty(b)
1
:norm! g<
(does not output anything)
Best,
Christian
--
Ich