mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
updated for version 7.3.824
Problem: Can redefine builtin functions. (ZyX) Solution: Disallow adding a function to g:.
This commit is contained in:
@@ -21164,6 +21164,9 @@ ex_function(eap)
|
||||
if (arg[j] != NUL)
|
||||
emsg_funcname((char *)e_invarg2, arg);
|
||||
}
|
||||
/* Disallow using the g: dict. */
|
||||
if (fudi.fd_dict != NULL && fudi.fd_dict->dv_scope == VAR_DEF_SCOPE)
|
||||
EMSG(_("E862: Cannot use g: here"));
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user