summaryrefslogtreecommitdiffstats
path: root/src/if_cscope.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/if_cscope.c
parent6f8d2ac6f1f8a4b971a4c9b27f9250288198f3bb (diff)
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/if_cscope.c')
-rw-r--r--src/if_cscope.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/if_cscope.c b/src/if_cscope.c
index 986663d951..d621a146b3 100644
--- a/src/if_cscope.c
+++ b/src/if_cscope.c
@@ -519,7 +519,7 @@ cs_add_common(
#ifdef FEAT_MODIFY_FNAME
len = (int)STRLEN(fname);
fbuf = (char_u *)fname;
- (void)modify_fname((char_u *)":p", &usedlen,
+ (void)modify_fname((char_u *)":p", FALSE, &usedlen,
(char_u **)&fname, &fbuf, &len);
if (fname == NULL)
goto add_err;