mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 21:48:35 +00:00
vim-patch:8.2.4275: cannot use an autoload function from a package under start (#29937)
Problem: Cannot use an autoload function from a package under start.
Solution: Also look in the "start" package directory. (Bjorn Linse,
closes vim/vim#7193)
223a950a85
Nvim already does this in do_in_cached_path(), and this change has no
effect in Nvim as Nvim removes DIP_START after do_in_cached_path().
Accidentally failed to mark as ported:
vim-patch:8.2.1731: Vim9: cannot use += to append to empty NULL list
Co-authored-by: bfredl <bjorn.linse@gmail.com>
This commit is contained in:
@@ -2857,7 +2857,7 @@ bool script_autoload(const char *const name, const size_t name_len, const bool r
|
||||
// Try loading the package from $VIMRUNTIME/autoload/<name>.vim
|
||||
// Use "ret_sid" to avoid loading the same script again.
|
||||
int ret_sid;
|
||||
if (do_in_runtimepath(scriptname, 0, source_callback, &ret_sid) == OK) {
|
||||
if (do_in_runtimepath(scriptname, DIP_START, source_callback, &ret_sid) == OK) {
|
||||
ret = true;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user