mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -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:
@@ -7238,6 +7238,11 @@ option_set_callback_func(char_u *optval UNUSED, callback_T *optcb UNUSED)
|
||||
free_callback(optcb);
|
||||
set_callback(optcb, &cb);
|
||||
free_tv(tv);
|
||||
|
||||
// when using Vim9 style "import.funcname" it needs to be expanded to
|
||||
// "import#funcname".
|
||||
expand_autload_callback(optcb);
|
||||
|
||||
return OK;
|
||||
#else
|
||||
return FAIL;
|
||||
|
Reference in New Issue
Block a user