diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-05-31 14:08:12 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-05-31 14:08:12 +0200 |
commit | 788fbb47079e6df4d4815d27273faf8390395029 (patch) | |
tree | 4257162a0428962e3aad34a926ff40d08b0d632d /src/optionstr.c | |
parent | 5cd1cb9ff9d04979ff4cbc36ca8416d83364505d (diff) | |
download | vim-git-8.2.0858.tar.gz |
patch 8.2.0858: not easy to require Lua modulesv8.2.0858
Problem: Not easy to require Lua modules.
Solution: Improve use of Lua path. (Prabir Shrestha, closes #6098)
Diffstat (limited to 'src/optionstr.c')
-rw-r--r-- | src/optionstr.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; |