Patch 8.2.0932

25 views
Skip to first unread message

Bram Moolenaar

unread,
Jun 8, 2020, 12:55:38 PM6/8/20
to vim...@googlegroups.com

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 -- Br...@Moolenaar.net -- 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 ///

Ken Takata

unread,
Jun 8, 2020, 11:10:42 PM6/8/20
to vim_dev
Hi Bram,


2020/6/9 Tue 1:55:38 UTC+9 Bram Moolenaar wrote:

Patch 8.2.0932
Problem:    Missspelling spelllang.
 
Oh, you misspelled the word misspelling.

Regards,
Ken Takata

Bram Moolenaar

unread,
Jun 9, 2020, 8:50:53 AM6/9/20
to vim...@googlegroups.com, Ken Takata

Ken Takata wrote:

> 2020/6/9 Tue 1:55:38 UTC+9 Bram Moolenaar wrote:
> >
> >
> > Patch 8.2.0932
> > Problem: Missspelling spelllang.
> >
>
> Oh, you misspelled the word misspelling.

Should be Missspellling ? :-)

Or it's a beautiful girl in Spelling.

--
You got to work at a mill? Lucky! I got sent back to work in the
acid-mines for my daily crust of stale bread... which not even the
birds would eat.

Tony Mechelynck

unread,
Jun 9, 2020, 1:50:11 PM6/9/20
to vim_dev, Ken Takata
On Tue, Jun 9, 2020 at 2:50 PM Bram Moolenaar <Br...@moolenaar.net> wrote:
>
>
> Ken Takata wrote:
>
> > 2020/6/9 Tue 1:55:38 UTC+9 Bram Moolenaar wrote:
> > >
> > >
> > > Patch 8.2.0932
> > > Problem: Missspelling spelllang.
> > >
> >
> > Oh, you misspelled the word misspelling.
>
> Should be Missspellling ? :-)
>
> Or it's a beautiful girl in Spelling.

Sounds like the kind of reason why the German word for ship travel,
previously written Schiffahrt, is now etymologycally written
Schifffahrt, or (preferably) Schiff-fahrt with hyphen; or why the
Dutch word for a sea duck is always hyphenated, otherwise there would
be no less than 4 consecutive e's in zee-eend.

Best regards,
Tony.
Reply all
Reply to author
Forward
0 new messages