aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/if_cscope.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-05-25 17:22:19 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-05-25 20:36:01 -0400
commit08aa9b00237ab45dadeffdf381e0e3c228337e53 (patch)
tree957ca9030f1b97b48e8befb38e1bbe185b0251ad /src/nvim/if_cscope.c
parent55419a6904306c21e6537a3b891df761ac352540 (diff)
downloadrneovim-08aa9b00237ab45dadeffdf381e0e3c228337e53.tar.gz
rneovim-08aa9b00237ab45dadeffdf381e0e3c228337e53.tar.bz2
rneovim-08aa9b00237ab45dadeffdf381e0e3c228337e53.zip
vim-patch:8.1.0211: expanding a file name "~" results in $HOME
Problem: Expanding a file name "~" results in $HOME. (Aidan Shafran) Solution: Change "~" to "./~" before expanding. (closes vim/vim#3072) https://github.com/vim/vim/commit/00136dc321586800986e8f743c2f108f5eecbf92
Diffstat (limited to 'src/nvim/if_cscope.c')
-rw-r--r--src/nvim/if_cscope.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/if_cscope.c b/src/nvim/if_cscope.c
index 4cb0c9a4ae..a033546394 100644
--- a/src/nvim/if_cscope.c
+++ b/src/nvim/if_cscope.c
@@ -425,7 +425,8 @@ cs_add_common(
expand_env((char_u *)arg1, (char_u *)fname, MAXPATHL);
size_t len = STRLEN(fname);
fbuf = (char_u *)fname;
- (void)modify_fname((char_u *)":p", &usedlen, (char_u **)&fname, &fbuf, &len);
+ (void)modify_fname((char_u *)":p", false, &usedlen,
+ (char_u **)&fname, &fbuf, &len);
if (fname == NULL)
goto add_err;
fname = (char *)vim_strnsave((char_u *)fname, len);