comparison src/testdir/test_undo.vim @ 16700:46322a4e6028 v8.1.1352

patch 8.1.1352: undofile() reports wrong name commit https://github.com/vim/vim/commit/e9ebc9a91cac357fd4888f4b71fdff7d97b41160 Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 19 15:27:14 2019 +0200 patch 8.1.1352: undofile() reports wrong name Problem: Undofile() reports wrong name. (Francisco Giordano) Solution: Clean up the name before changing path separators. (closes https://github.com/vim/vim/issues/4392, closes #4394)
author Bram Moolenaar <Bram@vim.org>
date Sun, 19 May 2019 15:30:08 +0200
parents 83a366325158
children 16a698aeeec1
comparison
equal deleted inserted replaced
16699:ca80f8eea726 16700:46322a4e6028
438 call delete('Xundodir', 'd') 438 call delete('Xundodir', 'd')
439 439
440 " Test undofile() with 'undodir' set to a non-existing directory. 440 " Test undofile() with 'undodir' set to a non-existing directory.
441 call assert_equal('', undofile('Xundofoo')) 441 call assert_equal('', undofile('Xundofoo'))
442 442
443 if isdirectory('/tmp')
444 set undodir=/tmp
445 call assert_equal('/tmp/%tmp%file', undofile('///tmp/file'))
446 endif
447
443 set undodir& 448 set undodir&
444 endfunc 449 endfunc