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.
This commit is contained in:
Bram Moolenaar
2018-12-14 15:48:48 +01:00
parent 5f5e203c92
commit 56242f2b08
2 changed files with 3 additions and 1 deletions

View File

@ -426,7 +426,7 @@ funct Test_undofile()
let cwd = getcwd()
if has('win32')
" Replace windows drive such as C:... into C%...
let cwd = substitute(cwd, '^\([A-Z]\):', '\1%', 'g')
let cwd = substitute(cwd, '^\([a-zA-Z]\):', '\1%', 'g')
endif
let cwd = substitute(cwd . '/Xundofoo', '/', '%', 'g')
if has('persistent_undo')

View File

@ -799,6 +799,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
585,
/**/
584,
/**/