On Mo, 08 Aug 2011, Bram Moolenaar wrote:
>
> Christian Brabandt wrote:
>
> > On Do, 04 Aug 2011, Tim Chase wrote:
> >
> > [fullquote, cause forwarding to vim-dev]
> > > On 08/04/2011 10:02 AM, ranousse@gmx.com wrote:
> > > >A remark about :put =list
> > > >I tried :put =[ 'str1', 'str2', '', 'str3', '' ]
> > > >the '' are here to insert empty lines.
> > > >The last one is not inserted.
> > >
> > > I see the same results here (the first empty string is added, the
> > > second/last one isn't) and I would call this a bug.
> >
> > Attached patch fixes this bug.
>
> Thanks. I'll have to double-check that omitting the empty line was not
> intentional.
It does that only for the last line, e.g. the register contains
"foo\nbar\n" then Vim will insert into the buffer foo\nbar and the
operation will be linewise. But when evaluating an expression and the
return string from the eval0() call returns foo\nbar\n you want the put
to insert the trailing last line.
regards,
Christian
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment