diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2021-09-27 10:00:36 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2021-09-27 21:17:53 +0200 |
commit | a0ec8597e3ef01b0121af7542fc482ae8e7eeb70 (patch) | |
tree | 77986a237d0ec0cd7b02903f7a73e95b8bfc2256 /src/nvim/option.c | |
parent | 96614f84abb43ad2e6b610dfbbda4d075a2a0aad (diff) | |
download | rneovim-a0ec8597e3ef01b0121af7542fc482ae8e7eeb70.tar.gz rneovim-a0ec8597e3ef01b0121af7542fc482ae8e7eeb70.tar.bz2 rneovim-a0ec8597e3ef01b0121af7542fc482ae8e7eeb70.zip |
fix(runtime): make a copy of runtime_search_path when iterating
This is to prevent concurrent modification, just like save_rtp
in the vim 8 implementation
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r-- | src/nvim/option.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index 77a161a3e1..8bdba82b67 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -2398,7 +2398,7 @@ static char_u *did_set_string_option(int opt_idx, char_u **varp, bool new_value_ didset_vimruntime = false; } } else if (varp == &p_rtp || varp == &p_pp) { // 'runtimepath' 'packpath' - invalidate_search_path(); + runtime_search_path_invalidate(); } else if (varp == &curwin->w_p_culopt || gvarp == &curwin->w_allbuf_opt.wo_culopt) { // 'cursorlineopt' if (**varp == NUL || fill_culopt_flags(*varp, curwin) != OK) { |