mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
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:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user