diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-08-14 21:35:40 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-08-14 21:35:40 +0200 |
commit | 2596a4e763e11eb8e406f262cb72fd2b39461572 (patch) | |
tree | ab7c8ca904bc2262bc7a4c80e57489fbcf07b43e /src/eval.c | |
parent | 6aa57295cfbe8f21c15f0671e45fd53cf990d404 (diff) |
patch 8.2.3346: Vim9: no error for using "." for concatenation after ":vim9cmd"v8.2.3346
Problem: Vim9: no error for using "." for concatenation after ":vim9cmd".
(Naohiro Ono)
Solution: Check for Vim9 script syntax. (closes #8756)
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c index 1fd4765c76..020f55720c 100644 --- a/src/eval.c +++ b/src/eval.c @@ -2860,7 +2860,8 @@ eval5(char_u **arg, typval_T *rettv, evalarg_T *evalarg) // "++" and "--" on the next line are a separate command. p = eval_next_non_blank(*arg, evalarg, &getnext); op = *p; - concat = op == '.' && (*(p + 1) == '.' || current_sctx.sc_version < 2); + concat = op == '.' && (*(p + 1) == '.' + || (current_sctx.sc_version < 2 && !vim9script)); if ((op != '+' && op != '-' && !concat) || p[1] == '=' || (p[1] == '.' && p[2] == '=')) break; |