Mercurial > vim
diff src/misc1.c @ 17966:46f95606b9ec v8.1.1979
patch 8.1.1979: code for handling file names is spread out
Commit: https://github.com/vim/vim/commit/b005cd80cfda591be95146024d9b97eef383500f
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Sep 4 15:54:55 2019 +0200
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 04 Sep 2019 16:00:04 +0200 |
parents | 6582dda76821 |
children | 8f4cc259ed7a |
line wrap: on
line diff
--- 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);