0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

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)
This commit is contained in:
Bram Moolenaar
2020-05-31 14:08:12 +02:00
parent 5cd1cb9ff9
commit 788fbb4707
8 changed files with 121 additions and 9 deletions

View File

@@ -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;