vim-patch:8.0.1463: test fails without 'autochdir' option

Problem:    Test fails without 'autochdir' option.
Solution:   Skip test if 'autochdir' is not supported.
ec48a9c589
This commit is contained in:
zeertzjq 2021-10-17 22:04:53 +08:00
parent 920473d2f2
commit eed89d5e0c

View File

@ -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:")