From: Bram Moolenaar Date: Wed, 10 Aug 2011 10:38:08 +0000 (+0200) Subject: updated for version 7.3.272 X-Git-Tag: v7.3.272 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=213b10a57e08cf4389c54084e7236837b2396bb7;p=vim updated for version 7.3.272 Problem: ":put =list" does not add an empty line for a trailing empty item. Solution: Add a trailing NL when turning a list into a string. --- diff --git a/src/eval.c b/src/eval.c index c29462480..22779e3b1 100644 --- a/src/eval.c +++ b/src/eval.c @@ -1357,7 +1357,11 @@ eval_to_string(arg, nextcmd, convert) { ga_init2(&ga, (int)sizeof(char), 80); if (tv.vval.v_list != NULL) + { list_join(&ga, tv.vval.v_list, (char_u *)"\n", TRUE, 0); + if (tv.vval.v_list->lv_len > 0) + ga_append(&ga, NL); + } ga_append(&ga, NUL); retval = (char_u *)ga.ga_data; } diff --git a/src/version.c b/src/version.c index 4b4a35c42..63c4c8f33 100644 --- a/src/version.c +++ b/src/version.c @@ -709,6 +709,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 272, /**/ 271, /**/