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/option.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/option.c')
-rw-r--r-- | src/option.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/option.c b/src/option.c index ff539683e..2ec6ed552 100644 --- a/src/option.c +++ b/src/option.c @@ -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; |