Patch 8.2.0932
Problem: Missspelling spelllang.
Solution: Add an "l". (Dominique Pelle)
Files: src/optionstr.c, src/proto/spell.pro, src/spell.c
*** ../vim-8.2.0931/src/optionstr.c 2020-05-31 15:08:55.118721233 +0200
--- src/optionstr.c 2020-06-08 18:52:39.406343921 +0200
***************
*** 1704,1710 ****
int is_spellfile = varp == &(curwin->w_s->b_p_spf);
if ((is_spellfile && !valid_spellfile(*varp))
! || (!is_spellfile && !valid_spellang(*varp)))
errmsg = e_invarg;
else
errmsg = did_set_spell_option(is_spellfile);
--- 1704,1710 ----
int is_spellfile = varp == &(curwin->w_s->b_p_spf);
if ((is_spellfile && !valid_spellfile(*varp))
! || (!is_spellfile && !valid_spelllang(*varp)))
errmsg = e_invarg;
else
errmsg = did_set_spell_option(is_spellfile);
*** ../vim-8.2.0931/src/proto/spell.pro 2019-12-12 12:55:33.000000000 +0100
--- src/proto/spell.pro 2020-06-08 18:52:39.406343921 +0200
***************
*** 43,49 ****
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_spellfile(char_u *val);
char *did_set_spell_option(int is_spellfile);
char *compile_cap_prog(synblock_T *synblock);
--- 43,49 ----
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_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);
*** ../vim-8.2.0931/src/spell.c 2020-05-30 20:30:42.896816552 +0200
--- src/spell.c 2020-06-08 18:52:39.406343921 +0200
***************
*** 2002,2008 ****
region = NULL;
len = (int)STRLEN(lang);
! if (!valid_spellang(lang))
continue;
if (STRCMP(lang, "cjk") == 0)
--- 2002,2008 ----
region = NULL;
len = (int)STRLEN(lang);
! if (!valid_spelllang(lang))
continue;
if (STRCMP(lang, "cjk") == 0)
***************
*** 4303,4312 ****
}
/*
! * Return TRUE if "val" is a valid 'spellang' value.
*/
int
! valid_spellang(char_u *val)
{
return valid_name(val, ".-_,@");
}
--- 4303,4312 ----
}
/*
! * Return TRUE if "val" is a valid 'spelllang' value.
*/
int
! valid_spelllang(char_u *val)
{
return valid_name(val, ".-_,@");
}
*** ../vim-8.2.0931/src/version.c 2020-06-07 22:21:35.220132507 +0200
--- src/version.c 2020-06-08 18:54:09.757947965 +0200
***************
*** 756,757 ****
--- 756,759 ----
{ /* Add new patch number below this line */
+ /**/
+ 932,
/**/
--
Just think of all the things we haven't thought of yet.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/202006081655.058GtVJp344650%40masaka.moolenaar.net.