]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.824 v7.3.824
authorBram Moolenaar <Bram@vim.org>
Wed, 20 Feb 2013 14:19:43 +0000 (15:19 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 20 Feb 2013 14:19:43 +0000 (15:19 +0100)
Problem:    Can redefine builtin functions.  (ZyX)
Solution:   Disallow adding a function to g:.

src/eval.c
src/version.c

index 106f1c57ec6bdca929fcc52b9d7c91ff2af9a7d6..bc41805e952acc567cd24fdd9b96c3ec8d1fafcf 100644 (file)
@@ -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"));
     }
 
     /*
index ca9b00666d28a019a5688a3acc63c46aadd86c46..fff1f7a6a4656e3436aa91096767fe0753f6fe73 100644 (file)
@@ -725,6 +725,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    824,
 /**/
     823,
 /**/