On 08/08/2011 02:49 PM, Bram Moolenaar wrote:
Christian Brabandt wrote:
On Do, 04 Aug 2011, Tim Chase wrote:
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.

Given that (based on the above example List) it allows the first blank line, it would seem that empty lines should be allowed as well. It just seems to be an anomaly/bug when the last item in a list is an empty string.

-tim



--
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

Reply via email to