mirror of
https://github.com/vim/vim.git
synced 2025-10-01 04:54:07 -04:00
patch 8.2.0932: missspelling spelllang
Problem: Missspelling spelllang. Solution: Add an "l". (Dominique Pelle)
This commit is contained in:
@@ -1704,7 +1704,7 @@ did_set_string_option(
|
|||||||
int is_spellfile = varp == &(curwin->w_s->b_p_spf);
|
int is_spellfile = varp == &(curwin->w_s->b_p_spf);
|
||||||
|
|
||||||
if ((is_spellfile && !valid_spellfile(*varp))
|
if ((is_spellfile && !valid_spellfile(*varp))
|
||||||
|| (!is_spellfile && !valid_spellang(*varp)))
|
|| (!is_spellfile && !valid_spelllang(*varp)))
|
||||||
errmsg = e_invarg;
|
errmsg = e_invarg;
|
||||||
else
|
else
|
||||||
errmsg = did_set_spell_option(is_spellfile);
|
errmsg = did_set_spell_option(is_spellfile);
|
||||||
|
@@ -43,7 +43,7 @@ char_u *spell_to_word_end(char_u *start, win_T *win);
|
|||||||
int spell_word_start(int startcol);
|
int spell_word_start(int startcol);
|
||||||
void spell_expand_check_cap(colnr_T col);
|
void spell_expand_check_cap(colnr_T col);
|
||||||
int expand_spelling(linenr_T lnum, char_u *pat, char_u ***matchp);
|
int expand_spelling(linenr_T lnum, char_u *pat, char_u ***matchp);
|
||||||
int valid_spellang(char_u *val);
|
int valid_spelllang(char_u *val);
|
||||||
int valid_spellfile(char_u *val);
|
int valid_spellfile(char_u *val);
|
||||||
char *did_set_spell_option(int is_spellfile);
|
char *did_set_spell_option(int is_spellfile);
|
||||||
char *compile_cap_prog(synblock_T *synblock);
|
char *compile_cap_prog(synblock_T *synblock);
|
||||||
|
@@ -2002,7 +2002,7 @@ did_set_spelllang(win_T *wp)
|
|||||||
region = NULL;
|
region = NULL;
|
||||||
len = (int)STRLEN(lang);
|
len = (int)STRLEN(lang);
|
||||||
|
|
||||||
if (!valid_spellang(lang))
|
if (!valid_spelllang(lang))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (STRCMP(lang, "cjk") == 0)
|
if (STRCMP(lang, "cjk") == 0)
|
||||||
@@ -4303,10 +4303,10 @@ expand_spelling(
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Return TRUE if "val" is a valid 'spellang' value.
|
* Return TRUE if "val" is a valid 'spelllang' value.
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
valid_spellang(char_u *val)
|
valid_spelllang(char_u *val)
|
||||||
{
|
{
|
||||||
return valid_name(val, ".-_,@");
|
return valid_name(val, ".-_,@");
|
||||||
}
|
}
|
||||||
|
@@ -754,6 +754,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
932,
|
||||||
/**/
|
/**/
|
||||||
931,
|
931,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user