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)
diff --git a/src/option.c b/src/option.c
index ff53968..2ec6ed5 100644
--- a/src/option.c
+++ b/src/option.c
@@ -7238,6 +7238,11 @@
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;