mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.2.4174: Vim9: can use an autoload name in normal script
Problem: Vim9: can use an autoload name in normal script. Solution: Disallow using an autoload name.
This commit is contained in:
@@ -4495,6 +4495,12 @@ define_function(exarg_T *eap, char_u *name_arg, garray_T *lines_to_free)
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (vim9script && vim_strchr(name, AUTOLOAD_CHAR) != NULL)
|
||||
{
|
||||
semsg(_(e_using_autoload_name_in_non_autoload_script_str),
|
||||
name);
|
||||
goto erret;
|
||||
}
|
||||
}
|
||||
if (var_conflict)
|
||||
{
|
||||
|
Reference in New Issue
Block a user