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.
This commit is contained in:
Bram Moolenaar
2011-08-10 12:38:08 +02:00
parent 994b223919
commit b6f9d20ef4
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -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;
}
+2
View File
@@ -709,6 +709,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
272,
/**/
271,
/**/