summaryrefslogtreecommitdiff
path: root/src/misc1.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-07-25 21:19:13 +0200
committerBram Moolenaar <Bram@vim.org>2018-07-25 21:19:13 +0200
commit00136dc321586800986e8f743c2f108f5eecbf92 (patch)
treead111932cd38d2914c866d4b45c3d84585fc81e1 /src/misc1.c
parent6f8d2ac6f1f8a4b971a4c9b27f9250288198f3bb (diff)
downloadvim-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.c2
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]))