diff options
Diffstat (limited to 'src/optionstr.c')
-rw-r--r-- | src/optionstr.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/optionstr.c b/src/optionstr.c index 6071f46ed..a0409fa77 100644 --- a/src/optionstr.c +++ b/src/optionstr.c @@ -248,6 +248,7 @@ check_buf_options(buf_T *buf) check_string_option(&buf->b_s.b_p_spc); check_string_option(&buf->b_s.b_p_spf); check_string_option(&buf->b_s.b_p_spl); + check_string_option(&buf->b_s.b_p_spo); #endif #ifdef FEAT_SEARCHPATH check_string_option(&buf->b_p_sua); @@ -1714,6 +1715,12 @@ did_set_string_option( { errmsg = compile_cap_prog(curwin->w_s); } + // 'spelloptions' + else if (varp == &(curwin->w_s->b_p_spo)) + { + if (**varp != NUL && STRCMP("camel", *varp) != 0) + errmsg = e_invarg; + } // 'spellsuggest' else if (varp == &p_sps) { |