Patch 8.1.1352

7 views
Skip to first unread message

Bram Moolenaar

unread,
May 19, 2019, 9:27:36 AM5/19/19
to vim...@googlegroups.com

Patch 8.1.1352
Problem: Undofile() reports wrong name. (Francisco Giordano)
Solution: Clean up the name before changing path separators. (closes #4392,
closes #4394)
Files: src/evalfunc.c, src/testdir/test_undo.vim


*** ../vim-8.1.1351/src/evalfunc.c 2019-05-16 20:29:40.799834279 +0200
--- src/evalfunc.c 2019-05-19 15:25:48.998541324 +0200
***************
*** 15128,15134 ****
}
else
{
! char_u *ffname = FullName_save(fname, FALSE);

if (ffname != NULL)
rettv->vval.v_string = u_get_undo_file_name(ffname, FALSE);
--- 15128,15134 ----
}
else
{
! char_u *ffname = FullName_save(fname, TRUE);

if (ffname != NULL)
rettv->vval.v_string = u_get_undo_file_name(ffname, FALSE);
*** ../vim-8.1.1351/src/testdir/test_undo.vim 2018-12-14 15:48:44.259178570 +0100
--- src/testdir/test_undo.vim 2019-05-19 15:24:54.666834346 +0200
***************
*** 440,444 ****
--- 440,449 ----
" 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
*** ../vim-8.1.1351/src/version.c 2019-05-19 15:19:53.824445415 +0200
--- src/version.c 2019-05-19 15:26:56.666177156 +0200
***************
*** 769,770 ****
--- 769,772 ----
{ /* Add new patch number below this line */
+ /**/
+ 1352,
/**/

--
EXPERIENCE - experience is a wonderful thing. It enables you to
recognise a mistake when you make it again.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages