summaryrefslogtreecommitdiff
path: root/src/eval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-07-31 14:11:58 +0200
committerBram Moolenaar <Bram@vim.org>2016-07-31 14:11:58 +0200
commitb54c3ff3174dbb5dfbfcabdf95200b047beaa644 (patch)
treea230032c07f9373c65ca64e4b9c237e70b4d6a54 /src/eval.c
parentfc1f2015e833e69b89b994faf4b2c4fc1e09220f (diff)
downloadvim-git-b54c3ff3174dbb5dfbfcabdf95200b047beaa644.tar.gz
patch 7.4.2134v7.4.2134
Problem: No error for using function() badly. Solution: Check for passing wrong function name. (Ken Takata)
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c
index 956f05cb1..cf2c77143 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -7813,7 +7813,7 @@ var_check_func_name(
/* Don't allow hiding a function. When "v" is not NULL we might be
* assigning another function to the same var, the type is checked
* below. */
- if (new_var && function_exists(name))
+ if (new_var && function_exists(name, FALSE))
{
EMSG2(_("E705: Variable name conflicts with existing function: %s"),
name);