diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-02-12 22:37:27 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-02-12 22:37:27 +0100 |
commit | 00f148d2f24fb955ab36b0833811582c58b2cf2f (patch) | |
tree | c6fb382f76ec1369f813d667903ac3d68d57428c /src/fileio.c | |
parent | beb7574d6b0eea1cae70aa2913a690da56de5307 (diff) |
patch 8.1.0904: USE_LONG_FNAME never definedv8.1.0904
Problem: USE_LONG_FNAME never defined.
Solution: Remove using USE_LONG_FNAME. (Ken Takata, closes #3938)
Diffstat (limited to 'src/fileio.c')
-rw-r--r-- | src/fileio.c | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/src/fileio.c b/src/fileio.c index 9ab90eb39b..c7f3ad1768 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -6224,13 +6224,7 @@ buf_modname( */ for (ptr = retval + fnamelen; ptr > retval; MB_PTR_BACK(retval, ptr)) { - if (*ext == '.' -#ifdef USE_LONG_FNAME - && (!USE_LONG_FNAME || shortname) -#else - && shortname -#endif - ) + if (*ext == '.' && shortname) if (*ptr == '.') /* replace '.' by '_' */ *ptr = '_'; if (vim_ispathsep(*ptr)) @@ -6249,11 +6243,7 @@ buf_modname( /* * For 8.3 file names we may have to reduce the length. */ -#ifdef USE_LONG_FNAME - if (!USE_LONG_FNAME || shortname) -#else if (shortname) -#endif { /* * If there is no file name, or the file name ends in '/', and the @@ -6291,7 +6281,7 @@ buf_modname( else if ((int)STRLEN(e) + extlen > 4) s = e + 4 - extlen; } -#if defined(USE_LONG_FNAME) || defined(WIN3264) +#ifdef WIN3264 /* * If there is no file name, and the extension starts with '.', put a * '_' before the dot, because just ".ext" may be invalid if it's on a @@ -6310,11 +6300,7 @@ buf_modname( /* * Prepend the dot. */ - if (prepend_dot && !shortname && *(e = gettail(retval)) != '.' -#ifdef USE_LONG_FNAME - && USE_LONG_FNAME -#endif - ) + if (prepend_dot && !shortname && *(e = gettail(retval)) != '.') { STRMOVE(e + 1, e); *e = '.'; |