From 6f25623e793e058c78481b7fb7a42eeff642694b Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sun, 25 Dec 2022 13:07:30 +0800 Subject: [PATCH] vim-patch:8.2.3737: test fails without the 'autochdir' option (#21529) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/nvim/testdir/test_cd.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nvim/testdir/test_cd.vim b/src/nvim/testdir/test_cd.vim index 2a2437f542..2b37f2c7c0 100644 --- 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()