diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-07-05 21:48:14 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-07-05 21:48:14 +0000 |
commit | 53180ce2e7b496306012316ca220fea978576a8c (patch) | |
tree | e52d6164116de32e335dcaed29e9d947c9cc7249 /src/fileio.c | |
parent | dfb9ac00215670dedfd1fb7c1bb54195e9a929a5 (diff) |
updated for version 7.0103v7.0103
Diffstat (limited to 'src/fileio.c')
-rw-r--r-- | src/fileio.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/fileio.c b/src/fileio.c index a8192eab07..dc2606b93d 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -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 |