Mercurial > vim
changeset 1763:45d9e2f80fe1 v7.2.061
updated for version 7.2-061
author | vimboss |
---|---|
date | Wed, 03 Dec 2008 08:52:26 +0000 |
parents | 158a68529622 |
children | 1c85355293f9 |
files | src/eval.c src/version.c |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/eval.c +++ b/src/eval.c @@ -10339,7 +10339,8 @@ f_function(argvars, rettv) s = get_tv_string(&argvars[0]); if (s == NULL || *s == NUL || VIM_ISDIGIT(*s)) EMSG2(_(e_invarg2), s); - else if (!function_exists(s)) + /* Don't check an autoload name for existence here. */ + else if (vim_strchr(s, AUTOLOAD_CHAR) == NULL && !function_exists(s)) EMSG2(_("E700: Unknown function: %s"), s); else {