diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-06-13 16:05:22 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-06-13 16:05:26 +0800 |
commit | e95f32a717898afea9af214e969cce9a787a8fa2 (patch) | |
tree | 93615b554a19858a35d38510bc381f6206a1e2d9 /src | |
parent | 1c16e5bb1105e1e0b668d5acb7830c69b78fec0e (diff) | |
download | rneovim-e95f32a717898afea9af214e969cce9a787a8fa2.tar.gz rneovim-e95f32a717898afea9af214e969cce9a787a8fa2.tar.bz2 rneovim-e95f32a717898afea9af214e969cce9a787a8fa2.zip |
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.
https://github.com/vim/vim/commit/db77c49401145d76441fbb3d22a1d7d987681c13
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/testdir/test_autocmd.vim | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/nvim/testdir/test_autocmd.vim b/src/nvim/testdir/test_autocmd.vim index 8d8b05ec94..660801d575 100644 --- a/src/nvim/testdir/test_autocmd.vim +++ b/src/nvim/testdir/test_autocmd.vim @@ -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 |