forked from aniani/vim
patch 8.2.3579: CI sometimes fails for MinGW
Problem: CI sometimes fails for MinGW. Solution: Use backslashes in HandleSwapExists(). (Christian Brabandt, closes #9078)
This commit is contained in:
committed by
Bram Moolenaar
parent
b32aa8a6a1
commit
4b2c804767
@@ -93,7 +93,12 @@ set encoding=utf-8
|
|||||||
" REDIR_TEST_TO_NULL has a very permissive SwapExists autocommand which is for
|
" REDIR_TEST_TO_NULL has a very permissive SwapExists autocommand which is for
|
||||||
" the test_name.vim file itself. Replace it here with a more restrictive one,
|
" the test_name.vim file itself. Replace it here with a more restrictive one,
|
||||||
" so we still catch mistakes.
|
" so we still catch mistakes.
|
||||||
let s:test_script_fname = expand('%')
|
if has("win32")
|
||||||
|
" replace any '/' directory separators by '\\'
|
||||||
|
let s:test_script_fname = substitute(expand('%'), '/', '\\', 'g')
|
||||||
|
else
|
||||||
|
let s:test_script_fname = expand('%')
|
||||||
|
endif
|
||||||
au! SwapExists * call HandleSwapExists()
|
au! SwapExists * call HandleSwapExists()
|
||||||
func HandleSwapExists()
|
func HandleSwapExists()
|
||||||
if exists('g:ignoreSwapExists')
|
if exists('g:ignoreSwapExists')
|
||||||
|
@@ -757,6 +757,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 */
|
||||||
|
/**/
|
||||||
|
3579,
|
||||||
/**/
|
/**/
|
||||||
3578,
|
3578,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user