aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2021-10-17 22:04:53 +0800
committerzeertzjq <zeertzjq@outlook.com>2021-10-17 22:04:53 +0800
commiteed89d5e0c3bd6870e6e9959ccfdbf99549dce6b (patch)
tree9ea9c7b6c44ea650e73e143988ba6f22ab2aa1db
parent920473d2f228fb33c63c092c825b182a7434f25f (diff)
downloadrneovim-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.vim3
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:")