diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2020-11-02 18:11:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-02 18:11:14 +0100 |
commit | bab5b2fbdae26b5ab898564c429b54f01bbd04b2 (patch) | |
tree | 02d5474819a8a09b8c473d5bb393065ca388cfa8 /src/nvim/lua/executor.c | |
parent | dc14b1468afeb53c9ca0a734a2035cc54b5e1d94 (diff) | |
parent | c60c7375f5754eea2a4209cc6441e70b2bb44f14 (diff) | |
download | rneovim-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/lua/executor.c')
-rw-r--r-- | src/nvim/lua/executor.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/nvim/lua/executor.c b/src/nvim/lua/executor.c index 887e8228aa..a095f298f2 100644 --- a/src/nvim/lua/executor.c +++ b/src/nvim/lua/executor.c @@ -549,14 +549,6 @@ static lua_State *nlua_enter(void) // stack: (empty) lua_getglobal(lstate, "vim"); // stack: vim - lua_getfield(lstate, -1, "_update_package_paths"); - // stack: vim, vim._update_package_paths - if (lua_pcall(lstate, 0, 0, 0)) { - // stack: vim, error - nlua_error(lstate, _("E5117: Error while updating package paths: %.*s")); - // stack: vim - } - // stack: vim lua_pop(lstate, 1); // stack: (empty) last_p_rtp = (const void *)p_rtp; @@ -564,14 +556,6 @@ static lua_State *nlua_enter(void) return lstate; } -/// Force an update of lua's package paths if runtime path has changed. -bool nlua_update_package_path(void) -{ - lua_State *const lstate = nlua_enter(); - - return !!lstate; -} - static void nlua_print_event(void **argv) { char *str = argv[0]; |