diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2020-10-19 20:05:54 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2020-11-02 15:21:36 +0100 |
commit | c60c7375f5754eea2a4209cc6441e70b2bb44f14 (patch) | |
tree | 930007daa8fbb65ad55acff0a8ecb49d8cb20b00 /src/nvim/ex_cmds2.c | |
parent | 6224ec3d4a672a9beb7522a34e61fa3b335bf070 (diff) | |
download | rneovim-c60c7375f5754eea2a4209cc6441e70b2bb44f14.tar.gz rneovim-c60c7375f5754eea2a4209cc6441e70b2bb44f14.tar.bz2 rneovim-c60c7375f5754eea2a4209cc6441e70b2bb44f14.zip |
startup: handle autoload and lua packages during startup
¡NO HAY BANDA!
Diffstat (limited to 'src/nvim/ex_cmds2.c')
-rw-r--r-- | src/nvim/ex_cmds2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c index 503fd8e0d0..713d18b44d 100644 --- a/src/nvim/ex_cmds2.c +++ b/src/nvim/ex_cmds2.c @@ -2363,7 +2363,7 @@ void ex_compiler(exarg_T *eap) do_unlet(S_LEN("b:current_compiler"), true); snprintf((char *)buf, bufsize, "compiler/%s.vim", eap->arg); - if (source_runtime(buf, DIP_ALL) == FAIL) { + if (source_in_path(p_rtp, buf, DIP_ALL) == FAIL) { EMSG2(_("E666: compiler not supported: %s"), eap->arg); } xfree(buf); @@ -2581,6 +2581,7 @@ int do_in_runtimepath(char_u *name, int flags, DoInRuntimepathCB callback, /// return FAIL when no file could be sourced, OK otherwise. int source_runtime(char_u *name, int flags) { + flags |= (flags & DIP_NORTP) ? 0 : DIP_START; return source_in_path(p_rtp, name, flags); } |