aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/option.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r--src/nvim/option.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c
index 310f382db7..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) {
@@ -3439,7 +3441,7 @@ static char_u *set_chars_option(win_T *wp, char_u **varp, bool set)
struct chars_tab {
int *cp; ///< char value
char *name; ///< char id
- int def; ///< default value
+ int def; ///< default value
};
struct chars_tab *tab;