Problem: Undofile() reports wrong name. (Francisco Giordano)
Solution: Clean up the name before changing path separators. (closes #4392,
closes #4394)
}
else
{
- char_u *ffname = FullName_save(fname, FALSE);
+ char_u *ffname = FullName_save(fname, TRUE);
if (ffname != NULL)
rettv->vval.v_string = u_get_undo_file_name(ffname, FALSE);
" Test undofile() with 'undodir' set to a non-existing directory.
call assert_equal('', undofile('Xundofoo'))
+ if isdirectory('/tmp')
+ set undodir=/tmp
+ call assert_equal('/tmp/%tmp%file', undofile('///tmp/file'))
+ endif
+
set undodir&
endfunc
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1352,
/**/
1351,
/**/