Skip to content

Commit ec48a9c

Browse files
committed
patch 8.0.1463: test fails without 'autochdir' option
Problem: Test fails without 'autochdir' option. Solution: Skip test if 'autochdir' is not supported.
1 parent f4aba79 commit ec48a9c

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

src/testdir/test_autocmd.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,6 +1232,9 @@ function Test_dirchanged_local()
12321232
endfunc
12331233

12341234
function Test_dirchanged_auto()
1235+
if !exists('+autochdir')
1236+
return
1237+
endif
12351238
call s:Before_test_dirchanged()
12361239
call test_autochdir()
12371240
autocmd test_dirchanged DirChanged auto call add(s:li, "auto:")

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,8 @@ static char *(features[]) =
771771

772772
static int included_patches[] =
773773
{ /* Add new patch number below this line */
774+
/**/
775+
1463,
774776
/**/
775777
1462,
776778
/**/

0 commit comments

Comments
 (0)