mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
vim-patch:8.2.3579: CI sometimes fails for MinGW
Problem: CI sometimes fails for MinGW. Solution: Use backslashes in HandleSwapExists(). (Christian Brabandt, closes vim/vim#9078)4b2c804767
Co-authored-by: Christian Brabandt <cb@256bit.org> (cherry picked from commit24bd7a4a9c
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
f0790c565c
commit
2010f398f4
@@ -95,7 +95,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')
|
||||||
|
Reference in New Issue
Block a user