mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
fall back to os_realpath
This commit is contained in:
parent
f348923934
commit
21c6b40a59
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user