From 213b10a57e08cf4389c54084e7236837b2396bb7 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 10 Aug 2011 12:38:08 +0200 Subject: 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. --- src/eval.c | 4 ++++ src/version.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/eval.c b/src/eval.c index c29462480d..22779e3b16 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 4b4a35c422..63c4c8f335 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, /**/ -- cgit v1.2.3