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:
@ -426,7 +426,7 @@ funct Test_undofile()
|
|||||||
let cwd = getcwd()
|
let cwd = getcwd()
|
||||||
if has('win32')
|
if has('win32')
|
||||||
" Replace windows drive such as C:... into C%...
|
" 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
|
endif
|
||||||
let cwd = substitute(cwd . '/Xundofoo', '/', '%', 'g')
|
let cwd = substitute(cwd . '/Xundofoo', '/', '%', 'g')
|
||||||
if has('persistent_undo')
|
if has('persistent_undo')
|
||||||
|
|||||||
@ -799,6 +799,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
585,
|
||||||
/**/
|
/**/
|
||||||
584,
|
584,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user