0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.2540: Vim9: no error for using script var name for argument

Problem:    Vim9: no error for using script var name for argument.
Solution:   Check for this error. (closes #7868)
This commit is contained in:
Bram Moolenaar
2021-02-21 22:20:24 +01:00
parent 7e82c5f338
commit b4893b8450
5 changed files with 21 additions and 1 deletions

View File

@@ -337,7 +337,7 @@ script_is_vim9()
* "cctx" is NULL at the script level.
* Returns OK or FAIL.
*/
static int
int
script_var_exists(char_u *name, size_t len, int vim9script, cctx_T *cctx)
{
int is_vim9_script;