diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-01-21 13:29:56 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-21 13:29:56 +0000 |
commit | f0e7e6365e86ca42c177fe165d3097d1bfb35f72 (patch) | |
tree | da24c974e4cfc8f3a1853f80e2974e60689fb833 /src/userfunc.c | |
parent | b7057bdd090ddcce96dc058e4e65340c8ec961d7 (diff) | |
download | vim-git-8.2.4171.tar.gz |
patch 8.2.4171: cannot invoke option function using autoload importv8.2.4171
Problem: Cannot invoke option function using autoload import.
Solution: Expand the import to an autoload function name. (closes #9578)
Diffstat (limited to 'src/userfunc.c')
-rw-r--r-- | src/userfunc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/userfunc.c b/src/userfunc.c index 223535fdb..734187875 100644 --- a/src/userfunc.c +++ b/src/userfunc.c @@ -3262,7 +3262,7 @@ call_callback_retnr( typval_T rettv; varnumber_T retval; - if (call_callback(callback, 0, &rettv, argcount, argvars) == FAIL) + if (call_callback(callback, -1, &rettv, argcount, argvars) == FAIL) return -2; retval = tv_get_number_chk(&rettv, NULL); |