1
0
forked from aniani/vim

patch 8.2.3318: Vim9: cannot ignore quotes in number at the command line

Problem:    Vim9: cannot ignore quotes in number at the command line.
Solution:   Use in_vim9script() so that after ":vim9" quotes are ignored.
This commit is contained in:
Bram Moolenaar
2021-08-08 19:56:28 +02:00
parent 33ea9fd4d8
commit ed8b099fd2
3 changed files with 7 additions and 1 deletions

View File

@@ -1704,7 +1704,7 @@ eval_number(
int want_string UNUSED)
{
int len;
int skip_quotes = current_sctx.sc_version >= 4;
int skip_quotes = current_sctx.sc_version >= 4 || in_vim9script();
#ifdef FEAT_FLOAT
char_u *p;
int get_float = FALSE;