mirror of
https://github.com/vim/vim.git
synced 2025-10-13 06:54:15 -04:00
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 #3072)
This commit is contained in:
@@ -3801,7 +3801,7 @@ f_fnamemodify(typval_T *argvars, typval_T *rettv)
|
||||
else
|
||||
{
|
||||
len = (int)STRLEN(fname);
|
||||
(void)modify_fname(mods, &usedlen, &fname, &fbuf, &len);
|
||||
(void)modify_fname(mods, FALSE, &usedlen, &fname, &fbuf, &len);
|
||||
}
|
||||
|
||||
rettv->v_type = VAR_STRING;
|
||||
|
Reference in New Issue
Block a user