diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-08-03 22:39:28 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-08-03 22:39:28 +0200 |
commit | f96e9dec636d7d105b015680d8c5d6b47d936e01 (patch) | |
tree | 33aa2dc0995d37b12de0da54e0d5d3002c03a764 /src/eval.c | |
parent | 83144546488b544a1fe4e2a4f8be954b98c696fc (diff) |
patch 8.2.1360: stray error for white space after expressionv8.2.1360
Problem: Stray error for white space after expression.
Solution: Ignore trailing white space. (closes #6608)
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c index 119b7cc189..87d2e16a7b 100644 --- a/src/eval.c +++ b/src/eval.c @@ -300,7 +300,7 @@ eval_expr_typval(typval_T *expr, typval_T *argv, int argc, typval_T *rettv) s = skipwhite(s); if (eval1_emsg(&s, rettv, NULL) == FAIL) return FAIL; - if (*s != NUL) // check for trailing chars after expr + if (*skipwhite(s) != NUL) // check for trailing chars after expr { clear_tv(rettv); semsg(_(e_invexpr2), s); |