0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

updated for version 7.0103

This commit is contained in:
Bram Moolenaar
2005-07-05 21:48:14 +00:00
parent dfb9ac0021
commit 53180ce2e7
30 changed files with 1461 additions and 774 deletions

View File

@@ -5435,25 +5435,27 @@ buf_modname(shortname, fname, ext, prepend_dot)
* Then truncate what is after the '/', '\' or ':' to 8 characters for
* MSDOS and 26 characters for AMIGA, a lot more for UNIX.
*/
for (ptr = retval + fnamelen; ptr >= retval; mb_ptr_back(retval, ptr))
for (ptr = retval + fnamelen; ptr > retval; mb_ptr_back(retval, ptr))
{
#ifndef RISCOS
if (*ext == '.'
#ifdef USE_LONG_FNAME
# ifdef USE_LONG_FNAME
&& (!USE_LONG_FNAME || shortname)
#else
# ifndef SHORT_FNAME
# else
# ifndef SHORT_FNAME
&& shortname
# endif
# endif
#endif
)
if (*ptr == '.') /* replace '.' by '_' */
*ptr = '_';
#endif /* RISCOS */
#endif
if (vim_ispathsep(*ptr))
{
++ptr;
break;
}
}
ptr++;
/* the file name has at most BASENAMELEN characters. */
#ifndef SHORT_FNAME