commit 6f25623e793e058c78481b7fb7a42eeff642694b
parent 9be24110f68abc111c87c88d82f50f64a1d3ecdd
Author: zeertzjq <zeertzjq@outlook.com>
Date: Sun, 25 Dec 2022 13:07:30 +0800
vim-patch:8.2.3737: test fails without the 'autochdir' option (#21529)
Problem: Test fails without the 'autochdir' option.
Solution: Check that the option is available. (Dominique Pellé, closes vim/vim#9272)
https://github.com/vim/vim/commit/8dea145e39a2569153cb63487d3403a46a882189
Co-authored-by: Dominique Pelle <dominique.pelle@gmail.com>
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/nvim/testdir/test_cd.vim b/src/nvim/testdir/test_cd.vim
@@ -233,6 +233,8 @@ endfunc
func Test_getcwd_actual_dir()
CheckFunction test_autochdir
+ CheckOption autochdir
+
let startdir = getcwd()
call mkdir('Xactual')
call test_autochdir()