diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-08-15 13:49:42 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-08-15 13:49:42 +0200 |
commit | dd9de50f4262898384be6ea7694d05507c7cb260 (patch) | |
tree | 7065a785ee6bd7f1a9dd30ff09bf800aa6bd9699 /src/typval.c | |
parent | 2596a4e763e11eb8e406f262cb72fd2b39461572 (diff) | |
download | vim-git-dd9de50f4262898384be6ea7694d05507c7cb260.tar.gz |
patch 8.2.3347: check for legacy script is incompletev8.2.3347
Problem: Check for legacy script is incomplete. (Naohiro Ono)
Solution: Also check the :legacy modifier. Use for string concatenation
with "." and others (issue #8756)
Diffstat (limited to 'src/typval.c')
-rw-r--r-- | src/typval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/typval.c b/src/typval.c index cdb617554..5fb98eb67 100644 --- a/src/typval.c +++ b/src/typval.c @@ -1704,7 +1704,7 @@ eval_number( int want_string UNUSED) { int len; - int skip_quotes = current_sctx.sc_version >= 4 || in_vim9script(); + int skip_quotes = !in_old_script(4); #ifdef FEAT_FLOAT char_u *p; int get_float = FALSE; |