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 c294624..22779e3 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -1357,7 +1357,11 @@
{
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 4b4a35c..63c4c8f 100644
--- a/src/version.c
+++ b/src/version.c
@@ -710,6 +710,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 272,
+/**/
271,
/**/
270,