diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-06-20 22:50:47 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-06-20 22:50:47 +0200 |
commit | 6797966dfc0219313886be55767e53d5a388b5c5 (patch) | |
tree | 251b9958824d03269e599f8f35db3c38f03d7416 /src/scriptfile.c | |
parent | 0cb5bcf5836de83f7d64fb01d3ce708caacaf66c (diff) | |
download | vim-git-6797966dfc0219313886be55767e53d5a388b5c5.tar.gz |
patch 8.2.1024: Vim9: no error for using "let g:var = val"v8.2.1024
Problem: Vim9: no error for using "let g:var = val".
Solution: Add an error.
Diffstat (limited to 'src/scriptfile.c')
-rw-r--r-- | src/scriptfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scriptfile.c b/src/scriptfile.c index abfa3b588..caeab1928 100644 --- a/src/scriptfile.c +++ b/src/scriptfile.c @@ -1873,7 +1873,7 @@ ex_scriptversion(exarg_T *eap UNUSED) nr = getdigits(&eap->arg); if (nr == 0 || *eap->arg != NUL) emsg(_(e_invarg)); - else if (nr > 4) + else if (nr > SCRIPT_VERSION_MAX) semsg(_("E999: scriptversion not supported: %d"), nr); else { |