Skip to content
Snippets Groups Projects
Commit 2142e5d8 authored by Bram Moolenaar's avatar Bram Moolenaar
Browse files

updated for version 7.3.824

Problem:    Can redefine builtin functions.  (ZyX)
Solution:   Disallow adding a function to g:.
parent 452ff5bd
No related branches found
Tags v7.3.824
No related merge requests found
......@@ -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"));
}
 
/*
......
......@@ -725,6 +725,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
824,
/**/
823,
/**/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment