1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: ":put =list" does not add an empty line for a trailing empty
13 Solution: Add a trailing NL when turning a list into a string.
17 *** ../vim-7.3.271/src/eval.c 2011-07-15 21:24:06.000000000 +0200
18 --- src/eval.c 2011-08-10 12:31:51.000000000 +0200
23 ga_init2(&ga, (int)sizeof(char), 80);
24 if (tv.vval.v_list != NULL)
26 list_join(&ga, tv.vval.v_list, (char_u *)"\n", TRUE, 0);
27 + if (tv.vval.v_list->lv_len > 0)
31 retval = (char_u *)ga.ga_data;
33 *** ../vim-7.3.271/src/version.c 2011-08-10 12:19:00.000000000 +0200
34 --- src/version.c 2011-08-10 12:36:41.000000000 +0200
38 { /* Add new patch number below this line */
44 Lose weight, NEVER Diet again with
45 The "Invisible Weight Loss Patch"
48 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
49 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
50 \\\ an exciting new programming language -- http://www.Zimbu.org ///
51 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///