Merge #4837 from justinmk/os_resolve_shortcut

os_resolve_shortcut
This commit is contained in:
Justin M. Keyes
2016-08-01 05:27:20 -04:00
committed by GitHub
4 changed files with 181 additions and 6 deletions

View File

@@ -13637,11 +13637,12 @@ static void f_resolve(typval_T *argvars, typval_T *rettv)
{
char_u *v = NULL;
v = mch_resolve_shortcut(p);
if (v != NULL)
v = os_resolve_shortcut(p);
if (v != NULL) {
rettv->vval.v_string = v;
else
} else {
rettv->vval.v_string = vim_strsave(p);
}
}
#else
# ifdef HAVE_READLINK