diff options
author | =?UTF-8?q?Bj=C3=B6rn=20Linse?= <bjorn.linse@gmail.com> | 2022-01-31 17:26:05 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-31 17:26:05 +0000 |
commit | 223a950a85448253780da4e821a5b23dcdfad28f (patch) | |
tree | 81659ffb3ffb58b4cadc1b8dc529591d531bec75 /src/scriptfile.c | |
parent | c570e9cf68c0fe30366e82c96be460047dd659b9 (diff) | |
download | vim-git-223a950a85448253780da4e821a5b23dcdfad28f.tar.gz |
patch 8.2.4275: cannot use an autoload function from a package under startv8.2.4275
Problem: Cannot use an autoload function from a package under start.
Solution: Also look in the "start" package directory. (Bjorn Linse,
closes #7193)
Diffstat (limited to 'src/scriptfile.c')
-rw-r--r-- | src/scriptfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scriptfile.c b/src/scriptfile.c index dec512a72..cee3f5440 100644 --- a/src/scriptfile.c +++ b/src/scriptfile.c @@ -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; } |