diff options
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/eval.c b/src/eval.c index f9df76350..b80762e12 100644 --- a/src/eval.c +++ b/src/eval.c @@ -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); |