mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 7.4.1550
Problem: Cannot load packages early. Solution: Add the ":packloadall" command.
This commit is contained in:
@@ -3189,14 +3189,21 @@ theend:
|
||||
vim_free(ffname);
|
||||
}
|
||||
|
||||
static int did_source_packages = FALSE;
|
||||
|
||||
/*
|
||||
* ":packloadall"
|
||||
* Find plugins in the package directories and source them.
|
||||
*/
|
||||
void
|
||||
source_packages()
|
||||
ex_packloadall(exarg_T *eap)
|
||||
{
|
||||
do_in_path(p_pp, (char_u *)"pack/*/start/*", DIP_ALL + DIP_DIR,
|
||||
if (!did_source_packages || (eap != NULL && eap->forceit))
|
||||
{
|
||||
did_source_packages = TRUE;
|
||||
do_in_path(p_pp, (char_u *)"pack/*/start/*", DIP_ALL + DIP_DIR,
|
||||
add_pack_plugin, p_pp);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user