]> granicus.if.org Git - vim/commitdiff
patch 8.2.0932: missspelling spelllang v8.2.0932
authorBram Moolenaar <Bram@vim.org>
Mon, 8 Jun 2020 16:54:49 +0000 (18:54 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 8 Jun 2020 16:54:49 +0000 (18:54 +0200)
Problem:    Missspelling spelllang.
Solution:   Add an "l". (Dominique Pelle)

src/optionstr.c
src/proto/spell.pro
src/spell.c
src/version.c

index ddb6c50f3058468b802463b93d8c868a8a65fa0e..6071f46ed5dc892b5b89ed3d8d64e0db18d25d97 100644 (file)
@@ -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);
index 461b5e10eaf7106743477156eea550f7c83dd8f0..6b1f84bc385e8d9b55fc51013be877a2bf61e6c9 100644 (file)
@@ -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);
index 20826f3fe98150c7a79ec4331abc10016d3a5e55..cdb8e2ff0a53977ef6fe41fa5a7bff1a467e234a 100644 (file)
@@ -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, ".-_,@");
 }
index 372d0c01f82c5369f33c04327b9443d47ce73f59..420d655a72a1f8187787f4ce83a5ba25f18eb66e 100644 (file)
@@ -754,6 +754,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    932,
 /**/
     931,
 /**/