summaryrefslogtreecommitdiff
path: root/src/typval.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/typval.c')
-rw-r--r--src/typval.c2
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;