aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nvim/eval.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index 07f65bbf22..c6a6ef6848 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -2367,7 +2367,10 @@ int eval0(char *arg, typval_T *rettv, exarg_T *eap, evalarg_T *const evalarg)
semsg(_(e_invexpr2), arg);
}
}
- ret = FAIL;
+
+ // Some of the expression may not have been consumed. Do not check for
+ // a next command to avoid more errors.
+ return FAIL;
}
if (eap != NULL) {