mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
Use full path in undofile(). Updated docs.
This commit is contained in:
@@ -17639,8 +17639,13 @@ f_undofile(argvars, rettv)
|
||||
{
|
||||
rettv->v_type = VAR_STRING;
|
||||
#ifdef FEAT_PERSISTENT_UNDO
|
||||
rettv->vval.v_string = u_get_undo_file_name(get_tv_string(&argvars[0]),
|
||||
FALSE);
|
||||
{
|
||||
char_u *ffname = FullName_save(get_tv_string(&argvars[0]), FALSE);
|
||||
|
||||
if (ffname != NULL)
|
||||
rettv->vval.v_string = u_get_undo_file_name(ffname, FALSE);
|
||||
vim_free(ffname);
|
||||
}
|
||||
#else
|
||||
rettv->vval.v_string = NULL;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user