diff options
| author | Mehmet Samet Duman <yongdohyun@projecttick.org> | 2026-04-04 16:31:32 +0300 |
|---|---|---|
| committer | Mehmet Samet Duman <yongdohyun@projecttick.org> | 2026-04-04 16:47:16 +0300 |
| commit | 146c889dde5ef0908d66ab2c1e1aa6b6ceef6deb (patch) | |
| tree | 773cb664c164bd46f7588286913cc4a4957e3ec6 /mnv/src/version.c | |
| parent | 580d07d58fdf879a895878a456124a58040c2d3b (diff) | |
| download | Project-Tick-146c889dde5ef0908d66ab2c1e1aa6b6ceef6deb.tar.gz Project-Tick-146c889dde5ef0908d66ab2c1e1aa6b6ceef6deb.zip | |
NOISSUE changed icons to mnv icons for mnv and removed localization support
MNV - MNV's not Vim 10.0.2 released
Signed-off-by: Mehmet Samet Duman <yongdohyun@projecttick.org>
Diffstat (limited to 'mnv/src/version.c')
| -rw-r--r-- | mnv/src/version.c | 33 |
1 files changed, 19 insertions, 14 deletions
diff --git a/mnv/src/version.c b/mnv/src/version.c index 4e323edb02..603c241d4a 100644 --- a/mnv/src/version.c +++ b/mnv/src/version.c @@ -256,15 +256,7 @@ static char *(features[]) = #if !defined(USE_SYSTEM) && defined(UNIX) "+fork()", #endif -#ifdef FEAT_GETTEXT -# ifdef DYNAMIC_GETTEXT - "+gettext/dyn", -# else - "+gettext", -# endif -#else "-gettext", -#endif "-hangul_input", #if (defined(HAVE_ICONV_H) && defined(USE_ICONV)) || defined(DYNAMIC_ICONV) # ifdef DYNAMIC_ICONV @@ -735,6 +727,10 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2, +/**/ + 1, +/**/ 0 }; @@ -1358,15 +1354,24 @@ do_intro_line( STRCPY(vers, mediumVersion); if (highest_patch()) { - // Check for 9.9x or 9.9xx, alpha/beta version - if (SAFE_isalpha((int)vers[3])) + // Find the position after the minor version number (after '.') + char_u *dot = mnv_strchr(vers, '.'); + int off = (dot != NULL) ? (int)(dot - vers) + 1 : (int)STRLEN(vers); + // Skip past the minor version digits + while (SAFE_isdigit((int)vers[off])) + off++; + // Check for alpha/beta suffix (e.g., "9.9a") + if (SAFE_isalpha((int)vers[off])) { - int len = (SAFE_isalpha((int)vers[4])) ? 5 : 4; - sprintf((char *)vers + len, ".%d%s", highest_patch(), - mediumVersion + len); + int len = off + 1; + if (SAFE_isalpha((int)vers[len])) + len++; + sprintf((char *)vers + len, ".%d%s", + highest_patch(), + mediumVersion + len); } else - sprintf((char *)vers + 3, ".%d", highest_patch()); + sprintf((char *)vers + off, ".%d", highest_patch()); } col += (int)STRLEN(vers); } |
