From 788fbb47079e6df4d4815d27273faf8390395029 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 31 May 2020 14:08:12 +0200 Subject: patch 8.2.0858: not easy to require Lua modules Problem: Not easy to require Lua modules. Solution: Improve use of Lua path. (Prabir Shrestha, closes #6098) --- src/optionstr.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/optionstr.c') diff --git a/src/optionstr.c b/src/optionstr.c index ff0186f42..c03d994c3 100644 --- a/src/optionstr.c +++ b/src/optionstr.c @@ -2402,6 +2402,11 @@ did_set_string_option( setmouse(); // in case 'mouse' changed } +#if defined(FEAT_LUA) || defined(PROTO) + if (varp == &p_rtp) + update_package_paths_in_lua(); +#endif + if (curwin->w_curswant != MAXCOL && (get_option_flags(opt_idx) & (P_CURSWANT | P_RALL)) != 0) curwin->w_set_curswant = TRUE; -- cgit v1.2.1