mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.2.1426: Vim9: cannot call autoload function in :def function
Problem: Vim9: cannot call autoload function in :def function. Solution: Load the autoload script. (closes #6690)
This commit is contained in:
@@ -1991,7 +1991,7 @@ autoload_name(char_u *name)
|
||||
if (scriptname == NULL)
|
||||
return NULL;
|
||||
STRCPY(scriptname, "autoload/");
|
||||
STRCAT(scriptname, name);
|
||||
STRCAT(scriptname, name[0] == 'g' && name[1] == ':' ? name + 2: name);
|
||||
for (p = scriptname + 9; (p = vim_strchr(p, AUTOLOAD_CHAR)) != NULL;
|
||||
q = p, ++p)
|
||||
*p = '/';
|
||||
|
Reference in New Issue
Block a user