1
0
forked from aniani/vim

patch 8.2.0953: spell checking doesn't work for CamelCased words

Problem:    Spell checking doesn't work for CamelCased words.
Solution:   Add the "camel" value in the new option 'spelloptions'.
            (closes #1235)
This commit is contained in:
Bram Moolenaar
2020-06-10 21:47:00 +02:00
parent be5ee8686a
commit 362b44bd4a
10 changed files with 45 additions and 0 deletions

View File

@@ -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)
{