aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r--src/nvim/eval.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index 1dab9df9cb..d6a8351330 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -5418,6 +5418,10 @@ list_join_inner (
*/
static int list_join(garray_T *gap, list_T *l, char_u *sep, int echo_style, int copyID)
{
+ if (l->lv_len < 1) {
+ return OK;
+ }
+
garray_T join_ga;
int retval;