diff options
author | zeertzjq <zeertzjq@outlook.com> | 2021-10-17 22:04:53 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2021-10-17 22:04:53 +0800 |
commit | eed89d5e0c3bd6870e6e9959ccfdbf99549dce6b (patch) | |
tree | 9ea9c7b6c44ea650e73e143988ba6f22ab2aa1db | |
parent | 920473d2f228fb33c63c092c825b182a7434f25f (diff) | |
download | rneovim-eed89d5e0c3bd6870e6e9959ccfdbf99549dce6b.tar.gz rneovim-eed89d5e0c3bd6870e6e9959ccfdbf99549dce6b.tar.bz2 rneovim-eed89d5e0c3bd6870e6e9959ccfdbf99549dce6b.zip |
vim-patch:8.0.1463: test fails without 'autochdir' option
Problem: Test fails without 'autochdir' option.
Solution: Skip test if 'autochdir' is not supported.
https://github.com/vim/vim/commit/ec48a9c58989babcad23d73483955f35b6e41492
-rw-r--r-- | src/nvim/testdir/test_autocmd.vim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_autocmd.vim b/src/nvim/testdir/test_autocmd.vim index d174b11a9c..a2ed3ae677 100644 --- a/src/nvim/testdir/test_autocmd.vim +++ b/src/nvim/testdir/test_autocmd.vim @@ -1369,6 +1369,9 @@ function Test_dirchanged_local() endfunc function Test_dirchanged_auto() + if !exists('+autochdir') + return + endif call s:Before_test_dirchanged() call test_autochdir() autocmd test_dirchanged DirChanged auto call add(s:li, "auto:") |