1
0
forked from aniani/vim

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 #4392,
            closes #4394)
This commit is contained in:
Bram Moolenaar
2019-05-19 15:27:14 +02:00
parent 338dfdad38
commit e9ebc9a91c
3 changed files with 8 additions and 1 deletions

View File

@@ -440,5 +440,10 @@ funct Test_undofile()
" 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