mirror of
https://github.com/neovim/neovim.git
synced 2025-10-04 08:56:29 +00:00
vim-patch:8.2.5081: autocmd test fails on MS-Windows
Problem: Autocmd test fails on MS-Windows.
Solution: Set shellslash to get forward slashes.
7c0d0c3c75
This commit is contained in:
@@ -1982,12 +1982,15 @@ function Test_dirchanged_global()
|
||||
exe 'lcd ' .. fnameescape(s:dir_bar)
|
||||
call assert_equal(expected, s:li)
|
||||
|
||||
let save_shellslash = &shellslash
|
||||
set shellslash
|
||||
exe 'cd ' .. s:dir_foo
|
||||
exe 'cd ' .. s:dir_bar
|
||||
autocmd! test_dirchanged DirChanged global let g:result = expand("<afile>")
|
||||
cd -
|
||||
call assert_equal(s:dir_foo, g:result)
|
||||
|
||||
let &shellslash = save_shellslash
|
||||
call s:After_test_dirchanged()
|
||||
endfunc
|
||||
|
||||
|
Reference in New Issue
Block a user