Tony Mechelynck wrote:

> Under :help has-patch, the new ยง4 says:
> 
> > 4.  Beyond a certain version or at a certain version and including a 
> > specific
> >     patch.  The "patch-7.4.123" feature means that the Vim version is 7.5 or
> >     later, or it is version 7.4 and patch 123 was included.
> >     The example above can be simplified to: >
> >     :if has("patch-6.2.148")
> > <    Note that it's possible for patch 147 to be omitted even though 148 is
> >     included.
> 
> Well, the problem with using :if has("patch-6.2.148") is that this form 
> of the test was only introduced at patchlevel 7.4.236 (and corrected at 
> 7.4.237). Vim 6.2 to 7.4.235 wouldn't know what has("patch-6.2.148") 
> meant, and therefore, I suppose, return 0 (i.e. false) unconditionally, 
> even with the patch in place. For patchlevels earlier than 7.4.237 it is 
> better to use the former test, :if version > 602 || (version == 602 && 
> has("patch148")), which still works on later versions anyway.

Right, the documentation is confusing and the example is wrong.

-- 
hundred-and-one symptoms of being an internet addict:
54. You start tilting your head sideways to smile. :-)

 /// 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].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui