fall back to os_realpath

This commit is contained in:
Magnus Kokk 2020-11-30 19:27:34 +02:00
parent f348923934
commit 21c6b40a59

View File

@ -7044,7 +7044,8 @@ static void f_resolve(typval_T *argvars, typval_T *rettv, FunPtr fptr)
xfree(buf); xfree(buf);
} }
# else # else
rettv->vval.v_string = (char_u *)xstrdup(fname); char *v = os_realpath(fname, NULL);
rettv->vval.v_string = (char_u *)(v == NULL ? xstrdup(fname) : v);
# endif # endif
#endif #endif