0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.2.4171: cannot invoke option function using autoload import

Problem:    Cannot invoke option function using autoload import.
Solution:   Expand the import to an autoload function name. (closes #9578)
This commit is contained in:
Bram Moolenaar
2022-01-21 13:29:56 +00:00
parent b7057bdd09
commit f0e7e6365e
6 changed files with 92 additions and 11 deletions

View File

@@ -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);