commit | 3d0089f5f46b00a87e5438e24c3ec709aa190f36 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Wed Dec 03 08:52:26 2008 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Wed Dec 03 08:52:26 2008 +0000 |
tree | f8dbad629de8b3b0b56779ff7731eaeb6c51f9ca | |
parent | 9f94b05b1f1b6857d126471b25b153b374a12016 [diff] [blame] |
updated for version 7.2-061
diff --git a/src/eval.c b/src/eval.c index ae78355..75c4099 100644 --- a/src/eval.c +++ b/src/eval.c
@@ -10339,7 +10339,8 @@ 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 {