comparison src/testdir/test_undo.vim @ 15150:83a366325158 v8.1.0585

patch 8.1.0585: undo test may fail on MS-Windows commit https://github.com/vim/vim/commit/56242f2b08737677812513c447955579a19aa620 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Dec 14 15:48:48 2018 +0100 patch 8.1.0585: undo test may fail on MS-Windows Problem: Undo test may fail on MS-Windows. Solution: Also handle lower case drive letters.
author Bram Moolenaar <Bram@vim.org>
date Fri, 14 Dec 2018 16:00:07 +0100
parents 9709d783261f
children 46322a4e6028
comparison
equal deleted inserted replaced
15149:d76c50aabb04 15150:83a366325158
424 call mkdir('Xundodir') 424 call mkdir('Xundodir')
425 set undodir=Xundodir 425 set undodir=Xundodir
426 let cwd = getcwd() 426 let cwd = getcwd()
427 if has('win32') 427 if has('win32')
428 " Replace windows drive such as C:... into C%... 428 " Replace windows drive such as C:... into C%...
429 let cwd = substitute(cwd, '^\([A-Z]\):', '\1%', 'g') 429 let cwd = substitute(cwd, '^\([a-zA-Z]\):', '\1%', 'g')
430 endif 430 endif
431 let cwd = substitute(cwd . '/Xundofoo', '/', '%', 'g') 431 let cwd = substitute(cwd . '/Xundofoo', '/', '%', 'g')
432 if has('persistent_undo') 432 if has('persistent_undo')
433 call assert_equal('Xundodir/' . cwd, undofile('Xundofoo')) 433 call assert_equal('Xundodir/' . cwd, undofile('Xundofoo'))
434 else 434 else