aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds2.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2020-11-02 18:11:14 +0100
committerGitHub <noreply@github.com>2020-11-02 18:11:14 +0100
commitbab5b2fbdae26b5ab898564c429b54f01bbd04b2 (patch)
tree02d5474819a8a09b8c473d5bb393065ca388cfa8 /src/nvim/ex_cmds2.c
parentdc14b1468afeb53c9ca0a734a2035cc54b5e1d94 (diff)
parentc60c7375f5754eea2a4209cc6441e70b2bb44f14 (diff)
downloadrneovim-bab5b2fbdae26b5ab898564c429b54f01bbd04b2.tar.gz
rneovim-bab5b2fbdae26b5ab898564c429b54f01bbd04b2.tar.bz2
rneovim-bab5b2fbdae26b5ab898564c429b54f01bbd04b2.zip
Merge pull request #13119 from bfredl/luartp
lua: handle require'package.mod' during startup
Diffstat (limited to 'src/nvim/ex_cmds2.c')
-rw-r--r--src/nvim/ex_cmds2.c3
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);
}