aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/option.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2021-09-19 12:11:41 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2021-09-26 15:44:40 +0200
commitac3288d556965b0aaae03c59244278700eb598e8 (patch)
treef5593187d9173f066ddb65d5110f528fde980531 /src/nvim/option.c
parentb3b02eb52943fdc8ba74af3b485e9d11655bc9c9 (diff)
downloadrneovim-ac3288d556965b0aaae03c59244278700eb598e8.tar.gz
rneovim-ac3288d556965b0aaae03c59244278700eb598e8.tar.bz2
rneovim-ac3288d556965b0aaae03c59244278700eb598e8.zip
fix(runtime): ordering of loading packages with user config
site packages must be sourced before user config NOTE: we only consider dirs exactly matching "after" to be an AFTER dir. vim8 considers all dirs like "foo/bar_after", "Xafter" etc, as an "after" dir in SOME codepaths not not in ALL codepaths.
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r--src/nvim/option.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c
index 8623dc6c0c..77a161a3e1 100644
--- a/src/nvim/option.c
+++ b/src/nvim/option.c
@@ -2397,6 +2397,8 @@ static char_u *did_set_string_option(int opt_idx, char_u **varp, bool new_value_
os_setenv("VIMRUNTIME", "", 1);
didset_vimruntime = false;
}
+ } else if (varp == &p_rtp || varp == &p_pp) { // 'runtimepath' 'packpath'
+ invalidate_search_path();
} else if (varp == &curwin->w_p_culopt
|| gvarp == &curwin->w_allbuf_opt.wo_culopt) { // 'cursorlineopt'
if (**varp == NUL || fill_culopt_flags(*varp, curwin) != OK) {