diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-03-17 11:46:55 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-03-17 11:46:55 +0000 |
commit | da6d42c35a68610af872551b03077047258a7551 (patch) | |
tree | 55bb0a5f23a54940c76cd220ed26d4a164c04811 /src/eval.c | |
parent | 4f6e772c9cd013a8690ab0f1efecc0ab3e855148 (diff) | |
download | vim-git-da6d42c35a68610af872551b03077047258a7551.tar.gz |
patch 8.2.4584: error for using autoload function in custom completionv8.2.4584
Problem: Error for using autoload function in custom completion.
Solution: Do not check for errors when using an autoload function.
(closes #9962)
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/eval.c b/src/eval.c index e4f47b18b..3f6be1847 100644 --- a/src/eval.c +++ b/src/eval.c @@ -705,10 +705,9 @@ call_vim_function( // The name might be "import.Func" or "Funcref". We don't know, we need to // ignore errors for an undefined name. But we do want errors when an - // autoload script has errors. Guess that when there is a dot or '#' in - // the name showing errors is the right choice. - ignore_errors = vim_strchr(func, '.') == NULL - && vim_strchr(func, AUTOLOAD_CHAR) == NULL; + // autoload script has errors. Guess that when there is a dot in the name + // showing errors is the right choice. + ignore_errors = vim_strchr(func, '.') == NULL; arg = func; if (ignore_errors) ++emsg_off; |