From e797d0658c70c734485f54e070cc7300dc47db57 Mon Sep 17 00:00:00 2001 From: TJ DeVries Date: Mon, 13 Jul 2020 17:20:22 -0400 Subject: fix: runtimepath always updates lua package.path --- src/nvim/lua/executor.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/nvim/lua/executor.c') diff --git a/src/nvim/lua/executor.c b/src/nvim/lua/executor.c index 0d5622f1e7..86da517685 100644 --- a/src/nvim/lua/executor.c +++ b/src/nvim/lua/executor.c @@ -543,6 +543,14 @@ 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]; -- cgit