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.
Best regards,
Tony.
--
Say my love is easy had,
Say I'm bitten raw with pride,
Say I am too often sad --
Still behold me at your side.
Say I'm neither brave nor young,
Say I woo and coddle care,
Say the devil touched my tongue --
Still you have my heart to wear.
But say my verses do not scan,
And I get me another man!
-- Dorothy Parker, "Fighting Words"
--
--
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.