diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-07-25 21:19:13 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-07-25 21:19:13 +0200 |
commit | 00136dc321586800986e8f743c2f108f5eecbf92 (patch) | |
tree | ad111932cd38d2914c866d4b45c3d84585fc81e1 /src/misc1.c | |
parent | 6f8d2ac6f1f8a4b971a4c9b27f9250288198f3bb (diff) | |
download | vim-git-00136dc321586800986e8f743c2f108f5eecbf92.tar.gz |
patch 8.1.0211: expanding a file name "~" results in $HOMEv8.1.0211
Problem: Expanding a file name "~" results in $HOME. (Aidan Shafran)
Solution: Change "~" to "./~" before expanding. (closes #3072)
Diffstat (limited to 'src/misc1.c')
-rw-r--r-- | src/misc1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc1.c b/src/misc1.c index f0e629b5b..ab5f6f731 100644 --- a/src/misc1.c +++ b/src/misc1.c @@ -4908,7 +4908,7 @@ home_replace( char_u *fbuf = NULL; flen = (int)STRLEN(homedir_env); - (void)modify_fname((char_u *)":p", &usedlen, + (void)modify_fname((char_u *)":p", FALSE, &usedlen, &homedir_env, &fbuf, &flen); flen = (int)STRLEN(homedir_env); if (flen > 0 && vim_ispathsep(homedir_env[flen - 1])) |