patch 7.4.702
Problem: Joining an empty list does uneccessary work.
Solution: Let join() return early. (Marco Hinz)
diff --git a/src/eval.c b/src/eval.c
index f9df763..b80762e 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -6780,6 +6780,8 @@
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);
diff --git a/src/version.c b/src/version.c
index 3f913ca..0f02ea8 100644
--- a/src/version.c
+++ b/src/version.c
@@ -742,6 +742,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 702,
+/**/
701,
/**/
700,