diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2015-12-12 14:32:46 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2015-12-12 14:32:46 -0500 |
commit | 3b74ee1ce9a84fcf79eae95cd04152e5c6730a0f (patch) | |
tree | bda5f432ca1ae77768e250d5d786a5c3a3b1f6a8 | |
parent | 158dc2b7a74a2eafbac76ad16ebac45185a3fdcd (diff) | |
parent | 7f8365e3027880d1ddec7f02281b5922ab29ac0c (diff) | |
download | rneovim-3b74ee1ce9a84fcf79eae95cd04152e5c6730a0f.tar.gz rneovim-3b74ee1ce9a84fcf79eae95cd04152e5c6730a0f.tar.bz2 rneovim-3b74ee1ce9a84fcf79eae95cd04152e5c6730a0f.zip |
Merge pull request #3825 from sethjackson/modname
Windows: Remove unnecessary codepath from modname
-rw-r--r-- | src/nvim/fileio.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c index 5ac133a0c3..11673785fd 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -4331,8 +4331,6 @@ void shorten_fnames(int force) /// @return [allocated] - A new filename, made up from: /// * fname + ext, if fname not NULL. /// * current dir + ext, if fname is NULL. -/// On Windows, and if ext starts with ".", a "_" is -/// preprended to ext (for filename to be valid). /// Result is guaranteed to: /// * be ended by <ext>. /// * have a basename with at most BASENAMELEN chars: @@ -4386,15 +4384,6 @@ char *modname(const char *fname, const char *ext, bool prepend_dot) char *s; s = ptr + strlen(ptr); -#if defined(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 - // FAT partition, and on HPFS it doesn't matter. - else if ((fname == NULL || *fname == NUL) && *ext == '.') { - *s++ = '_'; - } -#endif - // Append the extension. // ext can start with '.' and cannot exceed 3 more characters. strcpy(s, ext); |