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 -- [email protected] -- 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    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/201905191327.x4JDRTQP021254%40masaka.moolenaar.net.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui