neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit a68f5fccb3197116ff54898796486bcbc816ce10
parent dd8b6094c03362cc60d627ce709a4a0f9825b86a
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Mon, 13 Jun 2022 16:30:13 +0800

Merge pull request #18934 from zeertzjq/vim-8.2.5079

vim-patch:8.2.{5079,5081,5083}
Diffstat:
Msrc/nvim/testdir/test_autocmd.vim | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/nvim/testdir/test_autocmd.vim b/src/nvim/testdir/test_autocmd.vim @@ -1981,6 +1981,13 @@ function Test_dirchanged_global() call assert_equal(expected, s:li) exe 'lcd ' .. fnameescape(s:dir_bar) call assert_equal(expected, s:li) + + 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, substitute(g:result, '\\', '/', 'g')) + call s:After_test_dirchanged() endfunc