summaryrefslogtreecommitdiffstats
path: root/src/eval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-11-21 18:36:05 +0000
committerBram Moolenaar <Bram@vim.org>2006-11-21 18:36:05 +0000
commitb42dc236e9627c22bc48e35ff4ad8ad3dd5a0077 (patch)
treeeb82882c826436d2737f2fbef6ed786bb3b15ab1 /src/eval.c
parent508b9e895d01980ee0a25536e8e70ca9acbb43b4 (diff)
updated for version 7.0-167v7.0.167
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/eval.c b/src/eval.c
index f0d38df5a5..e54d50080f 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -18539,12 +18539,14 @@ ex_function(eap)
if (!eap->skip)
{
- /* Check the name of the function. */
+ /* Check the name of the function. Unless it's a dictionary function
+ * (that we are overwriting). */
if (name != NULL)
arg = name;
else
arg = fudi.fd_newkey;
- if (arg != NULL)
+ if (arg != NULL && (fudi.fd_di == NULL
+ || fudi.fd_di->di_tv.v_type != VAR_FUNC))
{
if (*arg == K_SPECIAL)
j = 3;