diff options
author | Bram Moolenaar <Bram@vim.org> | 2011-08-10 12:38:08 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2011-08-10 12:38:08 +0200 |
commit | 213b10a57e08cf4389c54084e7236837b2396bb7 (patch) | |
tree | 1fc0feea578b5df128b4b7947ae10a8db17f2e0b | |
parent | d0988c50f3d23ca15e567ff51d5ede2e28e9ac18 (diff) | |
download | vim-git-213b10a57e08cf4389c54084e7236837b2396bb7.tar.gz |
updated for version 7.3.272v7.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.
-rw-r--r-- | src/eval.c | 4 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 6 insertions, 0 deletions
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 @@ -710,6 +710,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 272, +/**/ 271, /**/ 270, |