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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user