0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 7.4.702

Problem:    Joining an empty list does uneccessary work.
Solution:   Let join() return early. (Marco Hinz)
This commit is contained in:
Bram Moolenaar
2015-04-16 22:51:22 +02:00
parent ec45c4a6df
commit d39a751280
2 changed files with 4 additions and 0 deletions

View File

@@ -6780,6 +6780,8 @@ list_join(gap, l, sep, echo_style, copyID)
join_T *p;
int i;
if (l->lv_len < 1)
return OK; /* nothing to do */
ga_init2(&join_ga, (int)sizeof(join_T), l->lv_len);
retval = list_join_inner(gap, l, sep, echo_style, copyID, &join_ga);

View File

@@ -741,6 +741,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
702,
/**/
701,
/**/