summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-06-08 18:54:49 +0200
committerBram Moolenaar <Bram@vim.org>2020-06-08 18:54:49 +0200
commitf154f3ab2c1eea67afc20140c580ad003752dc72 (patch)
tree810c30016a6d900d080aad74ea6813c54ea5f20a
parent6938e27abd80715cf7beb9d3d579a63201f417a1 (diff)
downloadvim-git-f154f3ab2c1eea67afc20140c580ad003752dc72.tar.gz
patch 8.2.0932: missspelling spelllangv8.2.0932
Problem: Missspelling spelllang. Solution: Add an "l". (Dominique Pelle)
-rw-r--r--src/optionstr.c2
-rw-r--r--src/proto/spell.pro2
-rw-r--r--src/spell.c6
-rw-r--r--src/version.c2
4 files changed, 7 insertions, 5 deletions
diff --git a/src/optionstr.c b/src/optionstr.c
index ddb6c50f3..6071f46ed 100644
--- a/src/optionstr.c
+++ b/src/optionstr.c
@@ -1704,7 +1704,7 @@ did_set_string_option(
int is_spellfile = varp == &(curwin->w_s->b_p_spf);
if ((is_spellfile && !valid_spellfile(*varp))
- || (!is_spellfile && !valid_spellang(*varp)))
+ || (!is_spellfile && !valid_spelllang(*varp)))
errmsg = e_invarg;
else
errmsg = did_set_spell_option(is_spellfile);
diff --git a/src/proto/spell.pro b/src/proto/spell.pro
index 461b5e10e..6b1f84bc3 100644
--- a/src/proto/spell.pro
+++ b/src/proto/spell.pro
@@ -43,7 +43,7 @@ char_u *spell_to_word_end(char_u *start, win_T *win);
int spell_word_start(int startcol);
void spell_expand_check_cap(colnr_T col);
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);
char *did_set_spell_option(int is_spellfile);
char *compile_cap_prog(synblock_T *synblock);
diff --git a/src/spell.c b/src/spell.c
index 20826f3fe..cdb8e2ff0 100644
--- a/src/spell.c
+++ b/src/spell.c
@@ -2002,7 +2002,7 @@ did_set_spelllang(win_T *wp)
region = NULL;
len = (int)STRLEN(lang);
- if (!valid_spellang(lang))
+ if (!valid_spelllang(lang))
continue;
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
-valid_spellang(char_u *val)
+valid_spelllang(char_u *val)
{
return valid_name(val, ".-_,@");
}
diff --git a/src/version.c b/src/version.c
index 372d0c01f..420d655a7 100644
--- a/src/version.c
+++ b/src/version.c
@@ -755,6 +755,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 932,
+/**/
931,
/**/
930,