mirror of
https://github.com/vim/vim.git
synced 2025-07-25 10:54:51 -04:00
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:
parent
d0988c50f3
commit
213b10a57e
@ -1357,7 +1357,11 @@ eval_to_string(arg, nextcmd, convert)
|
|||||||
{
|
{
|
||||||
ga_init2(&ga, (int)sizeof(char), 80);
|
ga_init2(&ga, (int)sizeof(char), 80);
|
||||||
if (tv.vval.v_list != NULL)
|
if (tv.vval.v_list != NULL)
|
||||||
|
{
|
||||||
list_join(&ga, tv.vval.v_list, (char_u *)"\n", TRUE, 0);
|
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);
|
ga_append(&ga, NUL);
|
||||||
retval = (char_u *)ga.ga_data;
|
retval = (char_u *)ga.ga_data;
|
||||||
}
|
}
|
||||||
|
@ -709,6 +709,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
272,
|
||||||
/**/
|
/**/
|
||||||
271,
|
271,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user