diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-07-31 14:11:58 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-07-31 14:11:58 +0200 |
commit | b54c3ff3174dbb5dfbfcabdf95200b047beaa644 (patch) | |
tree | a230032c07f9373c65ca64e4b9c237e70b4d6a54 /src/eval.c | |
parent | fc1f2015e833e69b89b994faf4b2c4fc1e09220f (diff) | |
download | vim-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.c | 2 |
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); |