From dd9de50f4262898384be6ea7694d05507c7cb260 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 15 Aug 2021 13:49:42 +0200 Subject: patch 8.2.3347: check for legacy script is incomplete Problem: Check for legacy script is incomplete. (Naohiro Ono) Solution: Also check the :legacy modifier. Use for string concatenation with "." and others (issue #8756) --- src/typval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/typval.c') 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; -- cgit v1.2.1