summaryrefslogtreecommitdiff
path: root/src/misc1.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-09-04 15:54:55 +0200
committerBram Moolenaar <Bram@vim.org>2019-09-04 15:54:55 +0200
commitb005cd80cfda591be95146024d9b97eef383500f (patch)
treece7d5ac25d5c8e3442828130c180e04820565d29 /src/misc1.c
parent1e1d30048e722906a13665bd6c3c24c87eb2fe25 (diff)
downloadvim-git-b005cd80cfda591be95146024d9b97eef383500f.tar.gz
patch 8.1.1979: code for handling file names is spread outv8.1.1979
Problem: Code for handling file names is spread out. Solution: Move code to new filepath.c file. Graduate FEAT_MODIFY_FNAME.
Diffstat (limited to 'src/misc1.c')
-rw-r--r--src/misc1.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/misc1.c b/src/misc1.c
index 5f0a7b6c3..ed3f57e11 100644
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -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);