Hi,

Vim's patch number is normally three-digit and zero-padded. (e.g. 7.4a.009)
But when I see the result of :intro, it is zero-suppressed.
(e.g. version 7.4a.9 BETA)  Is this intended?
I think it's better to use same representation.

--- a/src/version.c
+++ b/src/version.c
@@ -1392,11 +1392,11 @@
            if (isalpha((int)vers[3]))
            {
                int len = (isalpha((int)vers[4])) ? 5 : 4;
-               sprintf((char *)vers + len, ".%d%s", highest_patch(),
+               sprintf((char *)vers + len, ".%03d%s", highest_patch(),
                                                         mediumVersion + len);
            }
            else
-               sprintf((char *)vers + 3, ".%d", highest_patch());
+               sprintf((char *)vers + 3, ".%03d", highest_patch());
        }
        col += (int)STRLEN(vers);
     }


Regards,
Ken Takata

-- 
-- 
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/groups/opt_out.


Raspunde prin e-mail lui