1
0
forked from aniani/vim

patch 8.1.1979: code for handling file names is spread out

Problem:    Code for handling file names is spread out.
Solution:   Move code to new filepath.c file.  Graduate FEAT_MODIFY_FNAME.
This commit is contained in:
Bram Moolenaar
2019-09-04 15:54:55 +02:00
parent 1e1d30048e
commit b005cd80cf
24 changed files with 2226 additions and 2205 deletions

View File

@@ -2582,7 +2582,6 @@ home_replace(
if (homedir_env != NULL && *homedir_env == NUL)
homedir_env = NULL;
#if defined(FEAT_MODIFY_FNAME) || defined(FEAT_EVAL)
if (homedir_env != NULL && *homedir_env == '~')
{
int usedlen = 0;
@@ -2597,7 +2596,6 @@ home_replace(
/* Remove the trailing / that is added to a directory. */
homedir_env[flen - 1] = NUL;
}
#endif
if (homedir_env != NULL)
envlen = STRLEN(homedir_env);