Re: 'syntax spell default' results in E390

2007-01-21 Thread Bram Moolenaar

DervishD wrote:

> I've found a bug in Vim 7.0 (doesn't seem to be mentioned in any
> patch up and including 188.
> 
> When I issue "syntax spell default", it results in the following
> error: "E390: Illegal argument: default". I've took a look at the help
> for E390 and it seems to be an error for "syntax case", not "syntax
> spell". So I looked at the sources and I found this at src/spell.c, line
> 3190 (as Vim 7.0 unpatched):
> 
> ...STRNICMP(arg, "default", 4) == 0 && next - arg == 4...
> 
> Yes, "syntax spell defa" is successfull. That "4" should be replaced
> by "7".

Good catch.  Strange that nobody noticed yet.  I'll make a patch.

-- 
I started out with nothing, and I still have most of it.
-- Michael Davis -- "Tonight Show"

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\download, build and distribute -- http://www.A-A-P.org///
 \\\help me help AIDS victims -- http://ICCF-Holland.org///


'syntax spell default' results in E390

2007-01-21 Thread DervishD
Hi all :))

I've found a bug in Vim 7.0 (doesn't seem to be mentioned in any
patch up and including 188.

When I issue "syntax spell default", it results in the following
error: "E390: Illegal argument: default". I've took a look at the help
for E390 and it seems to be an error for "syntax case", not "syntax
spell". So I looked at the sources and I found this at src/spell.c, line
3190 (as Vim 7.0 unpatched):

...STRNICMP(arg, "default", 4) == 0 && next - arg == 4...

Yes, "syntax spell defa" is successfull. That "4" should be replaced
by "7".

Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736 | http://www.dervishd.net
It's my PC and I'll cry if I want to... RAmen!