mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
vim-patch:8.2.5083: autocmd test still fails on MS-Windows
Problem: Autocmd test still fails on MS-Windows.
Solution: Change backward to forward slashes.
db77c49401
This commit is contained in:
parent
1c16e5bb11
commit
e95f32a717
@ -1982,15 +1982,12 @@ 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)
|
||||
call assert_equal(s:dir_foo, substitute(g:result, '\\', '/', 'g'))
|
||||
|
||||
let &shellslash = save_shellslash
|
||||
call s:After_test_dirchanged()
|
||||
endfunc
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user