1
0
forked from aniani/vim

patch 8.2.4275: cannot use an autoload function from a package under start

Problem:    Cannot use an autoload function from a package under start.
Solution:   Also look in the "start" package directory. (Bjorn Linse,
            closes #7193)
This commit is contained in:
=?UTF-8?q?Bj=C3=B6rn=20Linse?=
2022-01-31 17:26:05 +00:00
committed by Bram Moolenaar
parent c570e9cf68
commit 223a950a85
3 changed files with 16 additions and 1 deletions

View File

@@ -2294,7 +2294,7 @@ script_autoload(
// Try loading the package from $VIMRUNTIME/autoload/<name>.vim
// Use "ret_sid" to avoid loading the same script again.
if (source_in_path(p_rtp, scriptname, 0, &ret_sid) == OK)
if (source_in_path(p_rtp, scriptname, DIP_START, &ret_sid) == OK)
ret = TRUE;
}